src/Model/Collection.php
public function slice($offset, $length = null)
    {
        return new static(array_slice($this->objects, $offset, $length, true));
    }
public function slice($offset, $length = null)
    {
        return new static(array_slice($this->objects, $offset, $length, true));
    }
public function slice ( $ offset , $ length = null ) { return new static ( array_slice ( $ this -> objects , $ offset , $ length , true ) ) ; }
Extract a slice of the collection.

@param  integer $offset See {@see array_slice()} for a description of $offset.
@param  integer $length See {@see array_slice()} for a description of $length.
@return static
Extract a slice of the collection .