| 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 | 33 | public function __construct($name, $alias = null, $arguments = [], $fields = []) |
|
| 33 | |||
| 34 | 18 | public function getName() |
|
| 38 | |||
| 39 | public function hasArguments() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return Argument[] |
||
| 46 | */ |
||
| 47 | 18 | public function getArguments() |
|
| 51 | |||
| 52 | public function addArgument(Argument $argument) |
||
| 56 | |||
| 57 | public function getKeyValueArguments() |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @return Field[]|Query[] |
||
| 70 | */ |
||
| 71 | 16 | public function getFields() |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @return bool |
||
| 78 | */ |
||
| 79 | public function hasFields() |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @param Field[]|Query[] $fields |
||
| 86 | */ |
||
| 87 | public function setFields($fields) |
||
| 91 | |||
| 92 | 3 | public function getAlias() |
|
| 96 | |||
| 97 | 17 | public function hasAlias() |
|
| 101 | |||
| 102 | } |
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..