@@ -53,6 +53,9 @@ discard block |
||
| 53 | 53 | /** @var WalkerHelper */ |
| 54 | 54 | private $walkerHelper; |
| 55 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $className |
|
| 58 | + */ |
|
| 56 | 59 | public function __construct(ElasticEntityManager $em, $className) { |
| 57 | 60 | $this->className = $className; |
| 58 | 61 | $this->annotationReader = new AnnotationReader(); |
@@ -94,6 +97,9 @@ discard block |
||
| 94 | 97 | } |
| 95 | 98 | } |
| 96 | 99 | |
| 100 | + /** |
|
| 101 | + * @param integer $offset |
|
| 102 | + */ |
|
| 97 | 103 | public function loadAll(array $criteria = [], array $orderBy = null, $limit = null, $offset = null) { |
| 98 | 104 | $type = $this->getEntityType(); |
| 99 | 105 | $sort = []; |
@@ -315,6 +321,9 @@ discard block |
||
| 315 | 321 | } |
| 316 | 322 | } |
| 317 | 323 | |
| 324 | + /** |
|
| 325 | + * @param integer $limit |
|
| 326 | + */ |
|
| 318 | 327 | public function load(array $criteria, $limit = null, array $orderBy = null) { |
| 319 | 328 | $results = $this->loadAll($criteria, $orderBy, $limit); |
| 320 | 329 | |