public function match(UriInterface $uri) { /* * if the URI does not contain the seed, it is not allowed */ return false === stripos($uri->toString(), $this->seed->toString()); }
public function match(UriInterface $uri) { foreach ($this->regexes as $regex) { if (preg_match($regex, $uri->toString())) { return FALSE; } } return TRUE; }
public function toString() { return $this->decorated->toString(); }
/** * @param UriInterface $uri * @return Resource */ public function request(UriInterface $uri) { $response = $this->getClient()->createRequest(RequestInterface::GET, $uri->toString())->send(); return new Resource($uri, $response); }