1 | <?php |
||
21 | class SitemapParser implements ParserInterface, RobotsTxtInterface |
||
22 | { |
||
23 | /** |
||
24 | * Sitemap array |
||
25 | * @var string[] |
||
26 | */ |
||
27 | private $sitemaps = []; |
||
28 | |||
29 | /** |
||
30 | * Sitemap constructor. |
||
31 | */ |
||
32 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * Add |
||
38 | * |
||
39 | * @param string $line |
||
40 | * @return bool |
||
41 | */ |
||
42 | public function add($line) |
||
54 | |||
55 | /** |
||
56 | * Client |
||
57 | * |
||
58 | * @return SitemapClient |
||
59 | */ |
||
60 | public function client() |
||
64 | |||
65 | /** |
||
66 | * Render |
||
67 | * |
||
68 | * @param RenderHandler $handler |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function render(RenderHandler $handler) |
||
79 | } |
||
80 |