public function offset(int $offset): self
    {
        if (0 > $offset) {
            throw new Exception(sprintf('%s() expects the offset to be a positive integer or 0, %s given', __METHOD__, $offset));
        }

        if ($offset === $this->offset) {
            return $this;
        }

        $clone = clone $this;
        $clone->offset = $offset;

        return $clone;
    }
public function offset(int $offset): self
    {
        if (0 > $offset) {
            throw new Exception(sprintf('%s() expects the offset to be a positive integer or 0, %s given', __METHOD__, $offset));
        }

        if ($offset === $this->offset) {
            return $this;
        }

        $clone = clone $this;
        $clone->offset = $offset;

        return $clone;
    }
public function offset ( int $ offset ) : self { if ( 0 > $ offset ) { throw new Exception ( sprintf ( '%s() expects the offset to be a positive integer or 0, %s given' , __METHOD__ , $ offset ) ) ; } if ( $ offset === $ this -> offset ) { return $ this ; } $ clone = clone $ this ; $ clone -> offset = $ offset ; return $ clone ; }
Set LimitIterator Offset.

@throws Exception if the offset is lesser than 0
Set LimitIterator Offset .