1 | <?php |
||
12 | class Sitemap implements DirectiveInterface, RobotsTxtInterface |
||
13 | { |
||
14 | use UrlTools; |
||
15 | |||
16 | /** |
||
17 | * Directive |
||
18 | */ |
||
19 | const DIRECTIVE = self::DIRECTIVE_SITEMAP; |
||
20 | |||
21 | /** |
||
22 | * Sitemap array |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $array = []; |
||
26 | |||
27 | /** |
||
28 | * Sitemap constructor. |
||
29 | */ |
||
30 | public function __construct() |
||
33 | |||
34 | /** |
||
35 | * Add |
||
36 | * |
||
37 | * @param string $line |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function add($line) |
||
51 | |||
52 | /** |
||
53 | * Export |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | public function export() |
||
61 | } |
||
62 |