| 1 | <?php | ||
| 8 | class Profile implements CrawlProfile | ||
| 9 | { | ||
| 10 | /** @var callable */ | ||
| 11 | protected $profile; | ||
| 12 | |||
| 13 | public function shouldCrawlCallback(callable $callback) | ||
| 14 |     { | ||
| 15 | $this->profile = $callback; | ||
| 16 | } | ||
| 17 | |||
| 18 | /* | ||
| 19 | * Determine if the given url should be crawled. | ||
| 20 | */ | ||
| 21 | public function shouldCrawl(Url $url): bool | ||
| 25 | } | ||
| 26 |