Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function slice($offset, $length)
 {
     Contracts::ensureInteger($offset, $length);
     Contracts::ensurePositiveNumber($offset, $length);
     return new static(new \LimitIterator($this->iterator, $offset, $length));
 }