| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class FilestoragePager implements AdapterInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var FileStorageDataLayer |
||
| 16 | */ |
||
| 17 | private $dataLayer; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Iterator |
||
| 21 | */ |
||
| 22 | private $iterator; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $resourceClass; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | private $context; |
||
| 33 | |||
| 34 | public function __construct(FileStorageDataLayer $dataLayer, Iterator $iterator, string $resourceClass, array $context) |
||
| 35 | { |
||
| 36 | $this->dataLayer = $dataLayer; |
||
| 37 | $this->iterator = $iterator; |
||
| 38 | $this->resourceClass = $resourceClass; |
||
| 39 | $this->context = $context; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getNbResults() |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getSlice($offset, $length) |
||
| 66 |