public static create ( |
||
$url | ||
$foundOnUrl |
public static function create(Url $url, Url $foundOnUrl = null)
{
return new static($url, $foundOnUrl);
}
/** * @param CrawlUrl|Url $crawlUrl * * @return bool */ public function has($crawlUrl) : bool { if ($crawlUrl instanceof Url) { $crawlUrl = CrawlUrl::create($crawlUrl); } if ($this->contains($this->pending, $crawlUrl)) { return true; } if ($this->contains($this->processed, $crawlUrl)) { return true; } return false; }