/**
* @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;
}