1 | <?php |
||
12 | class SitemapGenerator |
||
13 | { |
||
14 | /** @var string */ |
||
15 | protected $url = ''; |
||
16 | |||
17 | /** @var \Spatie\Crawler\Crawler */ |
||
18 | protected $crawler; |
||
19 | |||
20 | /** @var callable */ |
||
21 | protected $shouldCrawl; |
||
22 | |||
23 | /** @var callable */ |
||
24 | protected $hasCrawled; |
||
25 | |||
26 | /** @var \Spatie\Sitemap\Sitemap */ |
||
27 | protected $sitemap; |
||
28 | |||
29 | /** |
||
30 | * @param string $url |
||
31 | * |
||
32 | * @return static |
||
33 | */ |
||
34 | public static function create(string $url) |
||
38 | |||
39 | public function __construct(Crawler $crawler) |
||
53 | |||
54 | public function setUrl(string $url) |
||
60 | |||
61 | public function shouldCrawl(callable $shouldCrawl) |
||
67 | |||
68 | public function hasCrawled(callable $hasCrawled) |
||
74 | |||
75 | /** |
||
76 | * @return \Spatie\Sitemap\Sitemap |
||
77 | */ |
||
78 | public function getSitemap() |
||
87 | |||
88 | public function writeToFile(string $path) |
||
94 | |||
95 | protected function getCrawlProfile(): Profile |
||
107 | |||
108 | protected function getCrawlObserver(): Observer |
||
120 | } |
||
121 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.