| 1 | <?php |
||
| 11 | class Query |
||
| 12 | { |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $name; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | protected $alias; |
||
| 19 | |||
| 20 | /** @var Argument[] */ |
||
| 21 | protected $arguments; |
||
| 22 | |||
| 23 | /** @var Field[]|Query[] */ |
||
| 24 | protected $fields; |
||
| 25 | |||
| 26 | 10 | public function __construct($name, $alias = null, $arguments = [], $fields = []) |
|
| 33 | |||
| 34 | 4 | public function getName() |
|
| 38 | |||
| 39 | public function hasArguments() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return Argument[] |
||
| 46 | */ |
||
| 47 | 4 | public function getArguments() |
|
| 51 | |||
| 52 | public function getKeyValueArguments() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return Field[]|Query[] |
||
| 65 | */ |
||
| 66 | 3 | public function getFields() |
|
| 67 | { |
||
| 68 | 3 | return $this->fields; |
|
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return bool |
||
| 73 | */ |
||
| 74 | public function hasFields() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param Field[]|Query[] $fields |
||
| 81 | */ |
||
| 82 | public function setFields($fields) |
||
| 86 | |||
| 87 | 1 | public function getAlias() |
|
| 88 | { |
||
| 89 | 1 | return $this->alias; |
|
| 90 | } |
||
| 91 | |||
| 92 | 4 | public function hasAlias() |
|
| 96 | |||
| 97 | } |
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..