src/Http/Cookie/Cookie.php
public function matches($url)
    {
        $infos = parse_url($url);

        if ($this->expired()) {
            return false;
        }

        if (!$this->matchesScheme($infos['scheme'])) {
            return false;
        }

        if (!$this->matchesDomain($infos['host'])) {
            return false;
        }

        return $this->matchesPath($infos['path']);
    }
public function matches($url)
    {
        $infos = parse_url($url);

        if ($this->expired()) {
            return false;
        }

        if (!$this->matchesScheme($infos['scheme'])) {
            return false;
        }

        if (!$this->matchesDomain($infos['host'])) {
            return false;
        }

        return $this->matchesPath($infos['path']);
    }
public function matches ( $ url ) { $ infos = parse_url ( $ url ) ; if ( $ this -> expired ( ) ) { return false ; } if ( ! $ this -> matchesScheme ( $ infos [ 'scheme' ] ) ) { return false ; } if ( ! $ this -> matchesDomain ( $ infos [ 'host' ] ) ) { return false ; } return $ this -> matchesPath ( $ infos [ 'path' ] ) ; }
Checks if a scheme, domain and path match the Cookie ones.

@param  string  $url The URL path.
@return boolean      Returns `true` if it matches, `false otherwise`.
Checks if a scheme domain and path match the Cookie ones .