@@ -113,6 +113,9 @@ discard block |
||
113 | 113 | return $query; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param string $key |
|
118 | + */ |
|
116 | 119 | public function fetchData($key) |
117 | 120 | { |
118 | 121 | $pageKey = (!empty($this->request)) ? $this->request->getPathInfo() : null; |
@@ -148,7 +151,7 @@ discard block |
||
148 | 151 | /** |
149 | 152 | * Gets the value of session. |
150 | 153 | * |
151 | - * @return mixed |
|
154 | + * @return Session |
|
152 | 155 | */ |
153 | 156 | public function getSession() |
154 | 157 | { |
@@ -158,7 +161,7 @@ discard block |
||
158 | 161 | /** |
159 | 162 | * Gets the value of request. |
160 | 163 | * |
161 | - * @return mixed |
|
164 | + * @return Request|null |
|
162 | 165 | */ |
163 | 166 | public function getRequest() |
164 | 167 | { |
@@ -175,6 +178,9 @@ discard block |
||
175 | 178 | return $this->sessionData; |
176 | 179 | } |
177 | 180 | |
181 | + /** |
|
182 | + * @return integer |
|
183 | + */ |
|
178 | 184 | public function getItemPerPage() |
179 | 185 | { |
180 | 186 | return $this->configuration['item_per_page']; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Alpixel\Bundle\ElasticaQuerySorterBundle\Services; |
4 | 4 | |
5 | 5 | use Elastica\Query; |
6 | -use Elastica\Query\AbstractQuery; |
|
7 | 6 | use FOS\ElasticaBundle\Repository; |
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | 8 | use Symfony\Component\HttpFoundation\RequestStack; |