| 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 | 3 | 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 | 1 | public function getName() |
|
| 58 | { |
||
| 59 | 1 | return $this->name; |
|
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @param mixed $name |
||
| 64 | */ |
||
| 65 | public function setName($name) |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @return mixed |
||
| 72 | */ |
||
| 73 | 1 | public function getModel() |
|
| 74 | { |
||
| 75 | 1 | return $this->model; |
|
| 76 | } |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param mixed $model |
||
| 80 | */ |
||
| 81 | public function setModel($model) |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @return Field[]|Query[] |
||
| 88 | */ |
||
| 89 | 1 | public function getFields() |
|
| 90 | { |
||
| 91 | 1 | return $this->fields; |
|
| 92 | } |
||
| 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..