1 | <?php |
||
12 | trait RangeIterator |
||
13 | { |
||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $startPosition; |
||
18 | |||
19 | /** |
||
20 | * @var int|null |
||
21 | */ |
||
22 | protected $endPosition; |
||
23 | |||
24 | protected function __constructIterator($startAmount, $rangeAmount) |
||
29 | |||
30 | /** |
||
31 | * @return IIterator |
||
32 | */ |
||
33 | abstract protected function getSourceIterator(); |
||
34 | |||
35 | /** |
||
36 | * @return bool |
||
37 | */ |
||
38 | final public function isArrayCompatible() |
||
42 | } |
||
43 |