public function matchWhen($url = null)
    {
        if (null !== $url) {
            $this->setMatchUrl($url);
        }

        return strpos($this->getRequestedUrl(), $this->getMatchUrl()) === 0;
    }
public function matchWhen($url = null)
    {
        if (null !== $url) {
            $this->setMatchUrl($url);
        }

        return strpos($this->getRequestedUrl(), $this->getMatchUrl()) === 0;
    }
public function matchWhen ( $ url = null ) { if ( null !== $ url ) { $ this -> setMatchUrl ( $ url ) ; } return strpos ( $ this -> getRequestedUrl ( ) , $ this -> getMatchUrl ( ) ) === 0 ; }
match uri for when( method

@param null|string $url
@return bool
match uri for when ( method