Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
52 | public function getSlice($offset, $length) |
||
53 | { |
||
54 | $list = new LimitIterator( |
||
55 | $this->iterator, |
||
56 | $offset, |
||
57 | $length |
||
58 | ); |
||
59 | $result = []; |
||
60 | try { |
||
61 | foreach ($list as $file) { |
||
62 | /** @var SplFileInfo $file */ |
||
63 | $result[] = $this->dataLayer->retrieve($this->resourceClass, $file->getBasename(), $this->context); |
||
64 | |||
65 | } |
||
66 | } catch (OutOfBoundsException $outOfBoundsException) { |
||
67 | $outOfBoundsException->getMessage(); // ignore |
||
68 | } |
||
69 | return $result; |
||
70 | } |
||
72 |