| 1 | <?php |
||
| 17 | class Selectable implements AdapterInterface |
||
| 18 | { |
||
| 19 | /** @var DoctrineSelectable */ |
||
| 20 | protected $selectable; |
||
| 21 | |||
| 22 | /** @var Criteria */ |
||
| 23 | protected $criteria; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a paginator around a Selectable object. You can also provide an optional Criteria object with |
||
| 27 | * some predefined filters |
||
| 28 | */ |
||
| 29 | public function __construct(DoctrineSelectable $selectable, ?Criteria $criteria = null) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritDoc} |
||
| 37 | */ |
||
| 38 | 4 | public function getItems($offset, $itemCountPerPage) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * {@inheritDoc} |
||
| 47 | */ |
||
| 48 | 1 | public function count() |
|
| 57 | } |
||
| 58 |