1 | <?php |
||
17 | class InMemoryEntityIdPager implements SeekableEntityIdPager { |
||
18 | |||
19 | /** |
||
20 | * @var EntityId[] |
||
21 | */ |
||
22 | private $entityIds = []; |
||
23 | |||
24 | /** |
||
25 | * @var int |
||
26 | */ |
||
27 | private $offset = 0; |
||
28 | |||
29 | public function __construct( EntityId ...$ids ) { |
||
32 | |||
33 | public function addEntityId( EntityId $entityId ) { |
||
36 | |||
37 | /** |
||
38 | * @see EntityIdPager::fetchIds |
||
39 | * |
||
40 | * @param int $limit |
||
41 | * |
||
42 | * @return EntityId[] |
||
43 | */ |
||
44 | public function fetchIds( $limit ) { |
||
49 | |||
50 | public function getPosition() { |
||
53 | |||
54 | public function setPosition( $position ) { |
||
57 | |||
58 | } |
||
59 |