1 | <?php |
||
14 | class SitemapObserver implements ParsedContentObserverInterface |
||
15 | { |
||
16 | /** |
||
17 | * Config writer |
||
18 | * |
||
19 | * @var XmlXmlWriter |
||
20 | */ |
||
21 | private $xmlWriter; |
||
22 | |||
23 | /** |
||
24 | * Sitemap path |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $sitemapPath; |
||
29 | |||
30 | /** |
||
31 | * Base url |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | private $baseUrl; |
||
36 | |||
37 | /** |
||
38 | * Constructor |
||
39 | * |
||
40 | * @param XmlWriter $xmlWriter |
||
41 | * @param string $sitemapPath |
||
42 | * @param string $baseUrl |
||
43 | */ |
||
44 | public function __construct(XmlWriter $xmlWriter, string $sitemapPath, string $baseUrl) |
||
50 | |||
51 | /** |
||
52 | * Handle parsed config |
||
53 | * @param array $config |
||
54 | */ |
||
55 | public function __invoke(array $config) |
||
78 | |||
79 | /** |
||
80 | * Get xml config writer |
||
81 | * |
||
82 | * @return XmlXmlWriter |
||
83 | */ |
||
84 | public function getXmlWriter() : XmlWriter |
||
88 | |||
89 | /** |
||
90 | * Get sitemap path |
||
91 | * |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getSitemapPath() : string |
||
98 | |||
99 | /** |
||
100 | * Get base url |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getBaseUrl() : string |
||
108 | |||
109 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..