1 | <?php |
||
17 | class Selectable implements AdapterInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var DoctrineSelectable |
||
21 | */ |
||
22 | protected $selectable; |
||
23 | |||
24 | /** |
||
25 | * @var \Doctrine\Common\Collections\Criteria |
||
26 | */ |
||
27 | protected $criteria; |
||
28 | |||
29 | /** |
||
30 | * Create a paginator around a Selectable object. You can also provide an optional Criteria object with |
||
31 | * some predefined filters |
||
32 | * |
||
33 | * @param \Doctrine\Common\Collections\Selectable $selectable |
||
34 | * @param \Doctrine\Common\Collections\Criteria|null $criteria |
||
35 | */ |
||
36 | public function __construct(DoctrineSelectable $selectable, Criteria $criteria = null) |
||
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | 4 | public function getItems($offset, $itemCountPerPage) |
|
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | 1 | public function count() |
|
64 | } |
||
65 |