public __construct ( Traversable $source, integer $toSkip ) | ||
$source | Traversable | |
$toSkip | integer | The number of items to skip. |
public function __construct($source, $toSkip)
{
parent::__construct($source);
if ($toSkip < 0) {
throw new InvalidArgumentException("To skip should be >= 0.");
}
$this->toSkip = $toSkip;
}