| 1 | <?php |
||
| 17 | class QueryCreateEvent extends AbstractEvent |
||
| 18 | { |
||
| 19 | use EventOptionsTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private $innerQuery; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var Query |
||
| 28 | */ |
||
| 29 | private $query; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | private $locale; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var null|string |
||
| 38 | */ |
||
| 39 | private $primarySelector; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $innerQuery |
||
| 43 | * @param string $locale |
||
| 44 | * @param array $options |
||
| 45 | * @param null|string $primarySelector |
||
| 46 | */ |
||
| 47 | public function __construct($innerQuery, $locale, array $options = [], $primarySelector = null) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getInnerQuery() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param Query $query |
||
| 65 | */ |
||
| 66 | public function setQuery(Query $query) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getLocale() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return null|string |
||
| 81 | */ |
||
| 82 | public function getPrimarySelector() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @return mixed |
||
| 89 | * |
||
| 90 | * @throws DocumentManagerException |
||
| 91 | */ |
||
| 92 | public function getQuery() |
||
| 102 | } |
||
| 103 |
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..