src/CSDT/CollectionsBundle/CollectionHelper/HelperTrait/HelperSubTrait.php
public function subCollection(
        CollectionInterface $collection,
        $start = 0,
        $length = null
    ) {
        $content = $collection->toArray();
        
        $resultContent = array_slice($content, $start, $length, true);
        
        return $this->arrayToCollection($resultContent, get_class($collection));
    }
public function subCollection(
        CollectionInterface $collection,
        $start = 0,
        $length = null
    ) {
        $content = $collection->toArray();
        
        $resultContent = array_slice($content, $start, $length, true);
        
        return $this->arrayToCollection($resultContent, get_class($collection));
    }
Sub collection

Return a Collection that contain a part
of the $collection starting at an integer
index and for the given length. Th content
will be truncated if the length is superior
of the real collection length. Note you are
able to use it with a map collection.

@param CollectionInterface $collection The collection where find the content
@param number              $start      The start index
@param integer             $length     The length of the result collection
content

@throws \ParseError if the caster manager is not able to parse the
array to the first collection
@return CollectionInterface