1 | <?php |
||
13 | abstract class Make |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | public $errors = []; |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | public $chave; |
||
23 | /** |
||
24 | * @var NFePHP\Common\DOMImproved |
||
25 | */ |
||
26 | protected $dom; |
||
27 | /** |
||
28 | * @var \DOMElement |
||
29 | */ |
||
30 | protected $root; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | protected $id; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $xmlns = 'http://www.portalfiscal.inf.br/bpe'; |
||
41 | |||
42 | /** |
||
43 | * @var bool |
||
44 | */ |
||
45 | protected $onlyAscii = false; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | protected $available = []; |
||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $xml; |
||
55 | |||
56 | /** |
||
57 | * Constructor |
||
58 | */ |
||
59 | public function __construct() |
||
68 | |||
69 | public function __toString() |
||
76 | |||
77 | /** |
||
78 | * Return document key |
||
79 | * @return type |
||
80 | */ |
||
81 | public function getChave() |
||
85 | |||
86 | /** |
||
87 | * Returns XML |
||
88 | * @return type |
||
89 | */ |
||
90 | public function getXML() |
||
94 | |||
95 | /** |
||
96 | * To force convertion strings to ASCII |
||
97 | * @param bool $flag |
||
98 | * @return bool |
||
99 | */ |
||
100 | public function setToAscii($flag = null) |
||
107 | |||
108 | /** |
||
109 | * Abstract function to convert Tag::classes into DOM objects |
||
110 | */ |
||
111 | abstract public function parse(); |
||
112 | |||
113 | /** |
||
114 | * Call classes to build each element for XML |
||
115 | * @param string $name |
||
116 | * @param array $arguments [std] |
||
117 | * @return object|array |
||
118 | * @throws \Exception |
||
119 | */ |
||
120 | public function __call($name, $arguments) |
||
144 | |||
145 | /** |
||
146 | * Load Tag::class |
||
147 | * @param string $className |
||
148 | * @param array $arguments |
||
149 | * @return \NFePHP\BPe\Tags\className |
||
150 | */ |
||
151 | protected function loadTagClass($className, $arguments) |
||
161 | |||
162 | /** |
||
163 | * Create properties |
||
164 | * @param string $name |
||
165 | * @param TagInterface $value |
||
166 | */ |
||
167 | public function createProperty($name, TagInterface $value) |
||
171 | |||
172 | private function removeTagPrefix($string) |
||
176 | |||
177 | protected function createEmptyProperties() |
||
190 | |||
191 | /** |
||
192 | * Validate all objects |
||
193 | */ |
||
194 | protected function validateDataObjects() |
||
215 | |||
216 | protected function hashCSRT($csrt, $chave) |
||
220 | } |
||
221 |
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..