protected function findMatchingCookies(callable $match)
    {
        $cookies = [];

        foreach ($this->cookies as $cookie) {
            if ($match($cookie)) {
                $cookies[] = $cookie;
            }
        }

        return $cookies;
    }
protected function findMatchingCookies(callable $match)
    {
        $cookies = [];

        foreach ($this->cookies as $cookie) {
            if ($match($cookie)) {
                $cookies[] = $cookie;
            }
        }

        return $cookies;
    }
protected function findMatchingCookies ( callable $ match ) { $ cookies = [ ] ; foreach ( $ this -> cookies as $ cookie ) { if ( $ match ( $ cookie ) ) { $ cookies [ ] = $ cookie ; } } return $ cookies ; }
Finds matching cookies based on a callable.

@param callable $match

@return Cookie[]
Finds matching cookies based on a callable .