1 | <?php |
||
13 | class Decoder implements DecoderInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var SimpleXMLElement[] |
||
17 | */ |
||
18 | private $document; |
||
19 | |||
20 | /** |
||
21 | * @var Decoder\Message |
||
22 | */ |
||
23 | private $messageDecoder; |
||
24 | |||
25 | /** |
||
26 | * Path to the schema definition |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $schemeDefinitionPath; |
||
30 | |||
31 | /** |
||
32 | * @param Decoder\Message $messageDecoder |
||
33 | * @param string $schemeDefinitionPath |
||
34 | */ |
||
35 | 10 | public function __construct(Decoder\Message $messageDecoder, $schemeDefinitionPath) |
|
40 | |||
41 | /** |
||
42 | * @param DOMDocument $document |
||
43 | * @throws InvalidMessageException |
||
44 | */ |
||
45 | 10 | private function validate(DOMDocument $document) |
|
62 | |||
63 | /** |
||
64 | * @param DOMDocument $document |
||
65 | * @return Message |
||
66 | * @throws InvalidMessageException |
||
67 | */ |
||
68 | 10 | public function decode(DOMDocument $document) |
|
79 | } |
||
80 |
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..