1 | <?php |
||
8 | class Sitemap |
||
9 | { |
||
10 | /** @var array */ |
||
11 | protected $tags = []; |
||
12 | |||
13 | /** |
||
14 | * @return static |
||
15 | */ |
||
16 | public static function create() |
||
20 | |||
21 | /** |
||
22 | * @param string|\Spatie\Sitemap\Tags\Tag $tag |
||
23 | * |
||
24 | * @return $this |
||
25 | */ |
||
26 | public function add($tag) |
||
43 | |||
44 | /** |
||
45 | * @param Url $oldTag |
||
46 | * @param Url $newTag |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function update(Url $oldTag, Url $newTag) |
||
56 | |||
57 | /** |
||
58 | * @param string $url |
||
59 | * |
||
60 | * @return \Spatie\Sitemap\Tags\Url|null |
||
61 | */ |
||
62 | public function getUrl(string $url) |
||
68 | |||
69 | public function hasUrl(string $url): bool |
||
73 | |||
74 | public function render(): string |
||
84 | |||
85 | /** |
||
86 | * @param string $path |
||
87 | * |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function writeToFile(string $path) |
||
96 | } |
||
97 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.