private function match($url, SPIUrlWildcard $wildcard)
    {
        if (preg_match($this->compile($wildcard->sourceUrl), $url, $match)) {
            return $this->substitute($wildcard->destinationUrl, $match);
        }

        return null;
    }
private function match($url, SPIUrlWildcard $wildcard)
    {
        if (preg_match($this->compile($wildcard->sourceUrl), $url, $match)) {
            return $this->substitute($wildcard->destinationUrl, $match);
        }

        return null;
    }
private function match ( $ url , SPIUrlWildcard $ wildcard ) { if ( preg_match ( $ this -> compile ( $ wildcard -> sourceUrl ) , $ url , $ match ) ) { return $ this -> substitute ( $ wildcard -> destinationUrl , $ match ) ; } return null ; }
Tests if the given url matches against the given url wildcard.

if the wildcard matches on the given url this method will return a ready
to use destination url, otherwise this method will return <b>NULL</b>.

@param string $url
@param \eZ\Publish\SPI\Persistence\Content\UrlWildcard $wildcard

@return null|string
Tests if the given url matches against the given url wildcard .