public function last()
    {
        $this->seek($this->count() - 1);
        $entity = $this->current();
        $this->rewind();
        return $entity;
    }
public function last()
    {
        $this->seek($this->count() - 1);
        $entity = $this->current();
        $this->rewind();
        return $entity;
    }
public function last ( ) { $ this -> seek ( $ this -> count ( ) - 1 ) ; $ entity = $ this -> current ( ) ; $ this -> rewind ( ) ; return $ entity ; }
Returns last entity from collection

@return Entity
Returns last entity from collection