1 | <?php |
||
11 | class Fragment |
||
12 | { |
||
13 | |||
14 | protected $name; |
||
15 | |||
16 | protected $model; |
||
17 | |||
18 | /** @var Field[]|Query[] */ |
||
19 | protected $fields; |
||
20 | |||
21 | /** @var bool */ |
||
22 | private $used = false; |
||
23 | |||
24 | /** |
||
25 | * Fragment constructor. |
||
26 | * |
||
27 | * @param $name |
||
28 | * @param $model |
||
29 | * @param Field[]|Query[] $children |
||
30 | */ |
||
31 | 1 | public function __construct($name, $model, $children) |
|
37 | |||
38 | /** |
||
39 | * @return boolean |
||
40 | */ |
||
41 | public function isUsed() |
||
45 | |||
46 | /** |
||
47 | * @param boolean $used |
||
48 | */ |
||
49 | public function setUsed($used) |
||
53 | |||
54 | /** |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function getName() |
||
61 | |||
62 | /** |
||
63 | * @param mixed $name |
||
64 | */ |
||
65 | public function setName($name) |
||
69 | |||
70 | /** |
||
71 | * @return mixed |
||
72 | */ |
||
73 | public function getModel() |
||
77 | |||
78 | /** |
||
79 | * @param mixed $model |
||
80 | */ |
||
81 | public function setModel($model) |
||
85 | |||
86 | /** |
||
87 | * @return Field[]|Query[] |
||
88 | */ |
||
89 | public function getFields() |
||
93 | |||
94 | /** |
||
95 | * @param Field[]|Query[] $fields |
||
96 | */ |
||
97 | public function setFields($fields) |
||
101 | } |
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..