public function match($url)
    {
        if (!$this->pattern) {
            $this->pattern = self::buildPatternFromScheme($this);
        }

        return (bool) preg_match($this->pattern, $url);
    }
public function match($url)
    {
        if (!$this->pattern) {
            $this->pattern = self::buildPatternFromScheme($this);
        }

        return (bool) preg_match($this->pattern, $url);
    }
public function match ( $ url ) { if ( ! $ this -> pattern ) { $ this -> pattern = self :: buildPatternFromScheme ( $ this ) ; } return ( bool ) preg_match ( $ this -> pattern , $ url ) ; }
Check whether the given URL match the scheme

@param string $url The URL to check against

@return Boolean True if match, false if not
Check whether the given URL match the scheme