1 | <?php |
||
22 | class Repository |
||
23 | { |
||
24 | /** @var PaginatedFinderInterface */ |
||
25 | protected $finder; |
||
26 | |||
27 | /** |
||
28 | * @param PaginatedFinderInterface $finder |
||
29 | */ |
||
30 | 10 | public function __construct(PaginatedFinderInterface $finder) |
|
34 | |||
35 | /** |
||
36 | * @param mixed $query |
||
37 | * @param int $limit |
||
38 | * @param array $options |
||
39 | * |
||
40 | * @return array |
||
41 | */ |
||
42 | 2 | public function find($query, $limit = null, $options = []) |
|
46 | |||
47 | /** |
||
48 | * @param mixed $query |
||
49 | * @param int $limit |
||
50 | * @param array $options |
||
51 | * |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 1 | public function findHybrid($query, $limit = null, $options = []) |
|
58 | |||
59 | /** |
||
60 | * @param mixed $query |
||
61 | * @param array $options |
||
62 | * |
||
63 | * @return \Pagerfanta\Pagerfanta |
||
64 | */ |
||
65 | 1 | public function findPaginated($query, $options = []) |
|
69 | |||
70 | /** |
||
71 | * @param string $query |
||
72 | * @param array $options |
||
73 | * |
||
74 | * @return Paginator\PaginatorAdapterInterface |
||
75 | */ |
||
76 | 1 | public function createPaginatorAdapter($query, $options = []) |
|
80 | |||
81 | /** |
||
82 | * @param mixed $query |
||
83 | * |
||
84 | * @return Paginator\HybridPaginatorAdapter |
||
85 | */ |
||
86 | 1 | public function createHybridPaginatorAdapter($query) |
|
90 | } |
||
91 |