1 | <?php |
||
10 | final class FactoryPage implements Page |
||
11 | { |
||
12 | private $factory; |
||
13 | private $page; |
||
14 | |||
15 | public function __construct(callable $factory, Page $page) |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function getCurrentOffset() |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function getCurrentPage() |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getCurrentLimit() |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function count() |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function totalCount() |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function getIterator() |
||
70 | } |
||
71 |