| 1 | <?php |
||
| 13 | class Fragment extends AbstractAst |
||
| 14 | { |
||
| 15 | |||
| 16 | use AstDirectivesTrait; |
||
| 17 | |||
| 18 | protected $name; |
||
| 19 | |||
| 20 | protected $model; |
||
| 21 | |||
| 22 | /** @var Field[]|Query[] */ |
||
| 23 | protected $fields; |
||
| 24 | |||
| 25 | /** @var bool */ |
||
| 26 | private $used = false; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $name |
||
| 30 | * @param string $model |
||
| 31 | * @param array $directives |
||
| 32 | * @param Field[]|Query[] $fields |
||
| 33 | * @param Location $location |
||
| 34 | */ |
||
| 35 | 14 | public function __construct($name, $model, array $directives, array $fields, Location $location) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return boolean |
||
| 47 | */ |
||
| 48 | 10 | public function isUsed() |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @param boolean $used |
||
| 55 | */ |
||
| 56 | 10 | public function setUsed($used) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return mixed |
||
| 63 | */ |
||
| 64 | 12 | public function getName() |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @param mixed $name |
||
| 71 | */ |
||
| 72 | 1 | public function setName($name) |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @return mixed |
||
| 79 | */ |
||
| 80 | 9 | public function getModel() |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @param mixed $model |
||
| 87 | */ |
||
| 88 | 1 | public function setModel($model) |
|
| 92 | |||
| 93 | /** |
||
| 94 | * @return Field[]|Query[] |
||
| 95 | */ |
||
| 96 | 8 | public function getFields() |
|
| 100 | |||
| 101 | /** |
||
| 102 | * @param Field[]|Query[] $fields |
||
| 103 | */ |
||
| 104 | 1 | public function setFields($fields) |
|
| 108 | } |
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..