| 1 | <?php |
||
| 17 | class QueryExecuteEvent extends AbstractEvent |
||
| 18 | { |
||
| 19 | use EventOptionsTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var Query |
||
| 23 | */ |
||
| 24 | private $query; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var QueryResultCollection |
||
| 28 | */ |
||
| 29 | private $result; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param Query $query |
||
| 33 | * @param array $options |
||
| 34 | */ |
||
| 35 | public function __construct(Query $query, array $options = []) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return Query |
||
| 43 | */ |
||
| 44 | public function getQuery() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param QueryResultCollection $collection |
||
| 51 | */ |
||
| 52 | public function setResult(QueryResultCollection $collection) |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return mixed |
||
| 59 | */ |
||
| 60 | public function getResult() |
||
| 64 | } |
||
| 65 |
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..