1 | <?php |
||
17 | class Decoder implements DecoderInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var SimpleXMLElement[] |
||
21 | */ |
||
22 | private $document; |
||
23 | |||
24 | /** |
||
25 | * @var Decoder\Message |
||
26 | */ |
||
27 | private $messageDecoder; |
||
28 | |||
29 | /** |
||
30 | * Path to the schema definition |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $schemeDefinitionPath; |
||
34 | |||
35 | /** |
||
36 | * @param Decoder\Message $messageDecoder |
||
37 | * @param string $schemeDefinitionPath |
||
38 | */ |
||
39 | 14 | public function __construct(Decoder\Message $messageDecoder, $schemeDefinitionPath) |
|
44 | |||
45 | /** |
||
46 | * @param DOMDocument $document |
||
47 | * @throws InvalidMessageException |
||
48 | */ |
||
49 | 14 | private function validate(DOMDocument $document) |
|
66 | |||
67 | /** |
||
68 | * @param DOMDocument $document |
||
69 | * @return Message |
||
70 | * @throws InvalidMessageException |
||
71 | */ |
||
72 | 14 | public function decode(DOMDocument $document) |
|
83 | } |
||
84 |
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..