1 | <?php |
||
12 | class PrototypeQuery |
||
13 | { |
||
14 | /** |
||
15 | * @var ElasticClient $client |
||
16 | */ |
||
17 | protected $elastic; |
||
18 | |||
19 | /** |
||
20 | * @var IListener[] |
||
21 | */ |
||
22 | protected $listeners = []; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * @param ElasticClient $elastic |
||
27 | */ |
||
28 | public function __construct(ElasticClient $elastic) |
||
32 | |||
33 | /** |
||
34 | * @return ElasticClient |
||
35 | */ |
||
36 | public function getElasticClient() |
||
40 | |||
41 | /** |
||
42 | * @param $elastic |
||
43 | */ |
||
44 | public function setElasticClient($elastic) |
||
48 | |||
49 | /** |
||
50 | * @return IListener[] |
||
51 | */ |
||
52 | public function getListeners() |
||
56 | |||
57 | /** |
||
58 | * Create new instance of SearchQuery |
||
59 | * @return SearchQuery |
||
60 | */ |
||
61 | public function createSearchQuery() |
||
67 | |||
68 | /** |
||
69 | * Create new instance of MultiQuery |
||
70 | * @return MultiQuery |
||
71 | */ |
||
72 | public function createMultiQuery() |
||
78 | |||
79 | /** |
||
80 | * @param IListener $listener |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function addListener(IListener $listener) |
||
88 | |||
89 | /** |
||
90 | * @param IListener $listener |
||
91 | * @return $this |
||
92 | */ |
||
93 | public function removeListener(IListener $listener) |
||
102 | } |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.