public function shift()
    {
        $slice = $this->slice(0, 1);
        $offset = $slice->getKeys();
        $this->offsetUnset($offset[0]);
        return $slice->first();
    }
public function shift()
    {
        $slice = $this->slice(0, 1);
        $offset = $slice->getKeys();
        $this->offsetUnset($offset[0]);
        return $slice->first();
    }
public function shift ( ) { $ slice = $ this -> slice ( 0 , 1 ) ; $ offset = $ slice -> getKeys ( ) ; $ this -> offsetUnset ( $ offset [ 0 ] ) ; return $ slice -> first ( ) ; }
Shift an entity off the begining of collection

@return Entity
Shift an entity off the begining of collection