1 | <?php |
||
14 | class ElasticQuery { |
||
15 | |||
16 | /** @var ElasticEntityManager */ |
||
17 | protected $entityManager; |
||
18 | |||
19 | /** @var ElasticQueryExecutor */ |
||
20 | protected $queryExecutor; |
||
21 | |||
22 | /** @var int */ |
||
23 | protected $_firstResult; |
||
24 | |||
25 | /** @var int */ |
||
26 | protected $_maxResults; |
||
27 | |||
28 | /** @var string */ |
||
29 | protected $_dql; |
||
30 | |||
31 | /** @var array */ |
||
32 | protected $_parameters; |
||
33 | |||
34 | public function __construct(ElasticEntityManager $entityManager) { |
||
38 | |||
39 | public function getResult() { |
||
45 | |||
46 | public function getDQL() { |
||
49 | |||
50 | public function setDQL($dql) { |
||
53 | |||
54 | protected function processParameterMappings($paramMappings) { |
||
57 | |||
58 | /** |
||
59 | * @return mixed |
||
60 | */ |
||
61 | public function getParameters() { |
||
64 | |||
65 | /** |
||
66 | * @param mixed $parameters |
||
67 | * @return ElasticQuery |
||
68 | */ |
||
69 | public function setParameters($parameters) { |
||
73 | |||
74 | public function setFirstResult($offset) { |
||
78 | |||
79 | public function setMaxResults($limit) { |
||
83 | |||
84 | public function getFirstResult() { |
||
87 | |||
88 | public function getMaxResults() { |
||
91 | |||
92 | public function getEntityManager() { |
||
95 | |||
96 | public function getOneOrNullResult() { |
||
101 | |||
102 | public function getSingleResult() { |
||
105 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.