phpstreams\operations\SkipOperation::__construct PHP Method

__construct() public method

Construct a new skipping stream.
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;
    }