| 1 | <?php |
||
| 7 | class SkipIterator extends \FilterIterator |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var int number of elements to skip |
||
| 11 | */ |
||
| 12 | protected $num; |
||
| 13 | protected $skipped = 0; |
||
| 14 | |||
| 15 | public function __construct(Traversable $iterator, $num) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Check whether the current element of the iterator is acceptable. |
||
| 23 | * |
||
| 24 | * @link http://php.net/manual/en/filteriterator.accept.php |
||
| 25 | * |
||
| 26 | * @return bool true if the current element is acceptable, otherwise false. |
||
| 27 | */ |
||
| 28 | public function accept() |
||
| 38 | |||
| 39 | public function rewind() |
||
| 44 | } |
||
| 45 |