1 | <?php |
||
13 | class Repository |
||
14 | { |
||
15 | protected $finder; |
||
16 | |||
17 | 11 | public function __construct(PaginatedFinderInterface $finder) |
|
21 | |||
22 | /** |
||
23 | * @param mixed $query |
||
24 | * @param integer $limit |
||
25 | * @param array $options |
||
26 | * |
||
27 | * @return array |
||
28 | */ |
||
29 | 2 | public function find($query, $limit = null, $options = array()) |
|
33 | |||
34 | /** |
||
35 | * @param mixed $query |
||
36 | * @param integer $limit |
||
37 | * @param array $options |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | 1 | public function findHybrid($query, $limit = null, $options = array()) |
|
45 | |||
46 | /** |
||
47 | * @param mixed $query |
||
48 | * @param integer $limit |
||
49 | * @param array $options |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | 1 | public function findRawResult($query, $limit = null, $options = array()) |
|
57 | |||
58 | /** |
||
59 | * @param mixed $query |
||
60 | * @param array $options |
||
61 | * |
||
62 | * @return \Pagerfanta\Pagerfanta |
||
63 | */ |
||
64 | 1 | public function findPaginated($query, $options = array()) |
|
68 | |||
69 | /** |
||
70 | * @param string $query |
||
71 | * @param array $options |
||
72 | * |
||
73 | * @return Paginator\PaginatorAdapterInterface |
||
74 | */ |
||
75 | 1 | public function createPaginatorAdapter($query, $options = array()) |
|
79 | |||
80 | /** |
||
81 | * @param mixed $query |
||
82 | * @param array $options |
||
83 | * |
||
84 | * @return \Pagerfanta\Pagerfanta |
||
85 | */ |
||
86 | 1 | public function findRawPaginated($query, $options = array()) |
|
90 | |||
91 | /** |
||
92 | * @param string $query |
||
93 | * @param array $options |
||
94 | * |
||
95 | * @return Paginator\PaginatorAdapterInterface |
||
96 | */ |
||
97 | 1 | public function createRawPaginatorAdapter($query, $options = array()) |
|
101 | } |
||
102 |