Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | abstract class SimpleXMLElementDecorator |
||
6 | { |
||
7 | /** |
||
8 | * @var SimpleXMLElement |
||
9 | */ |
||
10 | protected $simpleXMLElement; |
||
11 | |||
12 | public function __construct(\SimpleXMLElement $simpleXMLElement) |
||
15 | } |
||
16 | |||
17 | public function __call($method, $arguments) |
||
18 | { |
||
19 | return call_user_func_array(array($this->simpleXMLElement, $method), $arguments); |
||
20 | } |
||
21 | |||
22 | public function __set($name, $value) { |
||
23 | $this->simpleXMLElement->$name = $value; |
||
24 | } |
||
25 | |||
26 | public function __get($name) { |
||
27 | return $this->simpleXMLElement->$name; |
||
28 | } |
||
29 | |||
30 | public function __isset($name) { |
||
31 | return isset($this->simpleXMLElement->$name); |
||
32 | } |
||
33 | |||
34 | public function __unset($name) { |
||
36 | } |
||
37 | } |
||
38 |
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..