1 | <?php |
||
13 | class Repository |
||
14 | { |
||
15 | /** @var PaginatedFinderInterface */ |
||
16 | protected $finder; |
||
17 | |||
18 | /** |
||
19 | * @param PaginatedFinderInterface $finder |
||
20 | */ |
||
21 | 8 | public function __construct(PaginatedFinderInterface $finder) |
|
25 | |||
26 | /** |
||
27 | * @param mixed $query |
||
28 | * @param integer $limit |
||
29 | * @param array $options |
||
30 | * |
||
31 | * @return array |
||
32 | */ |
||
33 | 2 | public function find($query, $limit = null, $options = array()) |
|
37 | |||
38 | /** |
||
39 | * @param mixed $query |
||
40 | * @param integer $limit |
||
41 | * @param array $options |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | 1 | public function findHybrid($query, $limit = null, $options = array()) |
|
49 | |||
50 | /** |
||
51 | * @param mixed $query |
||
52 | * @param array $options |
||
53 | * |
||
54 | * @return \Pagerfanta\Pagerfanta |
||
55 | */ |
||
56 | 1 | public function findPaginated($query, $options = array()) |
|
60 | |||
61 | /** |
||
62 | * @param string $query |
||
63 | * @param array $options |
||
64 | * |
||
65 | * @return Paginator\PaginatorAdapterInterface |
||
66 | */ |
||
67 | 1 | public function createPaginatorAdapter($query, $options = array()) |
|
71 | |||
72 | /** |
||
73 | * @param mixed $query |
||
74 | * |
||
75 | * @return Paginator\HybridPaginatorAdapter |
||
76 | */ |
||
77 | public function createHybridPaginatorAdapter($query) |
||
81 | } |
||
82 |