1 | <?php |
||
19 | class RenderIndexFileStream implements FileStream |
||
20 | { |
||
21 | /** |
||
22 | * @var SitemapIndexRender |
||
23 | */ |
||
24 | private $render; |
||
25 | |||
26 | /** |
||
27 | * @var SitemapRender |
||
28 | */ |
||
29 | private $substream; |
||
30 | |||
31 | /** |
||
32 | * @var StreamState |
||
33 | */ |
||
34 | private $state; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $host = ''; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | private $filename = ''; |
||
45 | |||
46 | /** |
||
47 | * @var int |
||
48 | */ |
||
49 | private $index = 0; |
||
50 | |||
51 | /** |
||
52 | * @var int |
||
53 | */ |
||
54 | private $counter = 0; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | private $buffer = ''; |
||
60 | |||
61 | /** |
||
62 | * @param SitemapIndexRender $render |
||
63 | * @param FileStream $substream |
||
64 | * @param string $host |
||
65 | * @param string $filename |
||
66 | */ |
||
67 | public function __construct(SitemapIndexRender $render, FileStream $substream, $host, $filename) |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getFilename() |
||
83 | |||
84 | public function open() |
||
90 | |||
91 | public function close() |
||
99 | |||
100 | /** |
||
101 | * @param Url $url |
||
102 | */ |
||
103 | public function push(Url $url) |
||
118 | |||
119 | private function addSubStreamFileToIndex() |
||
132 | |||
133 | /** |
||
134 | * @param string $filename |
||
135 | * @param int $index |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | private function getIndexPartFilename($filename, $index) |
||
149 | |||
150 | /** |
||
151 | * @return int |
||
152 | */ |
||
153 | public function count() |
||
157 | } |
||
158 |
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..