public function last()
    {
        $this->executeBeforeCallback();

        return count($this->items) > 0 ? end($this->items) : null;
    }
public function last()
    {
        $this->executeBeforeCallback();

        return count($this->items) > 0 ? end($this->items) : null;
    }
public function last ( ) { $ this -> executeBeforeCallback ( ) ; return count ( $ this -> items ) > 0 ? end ( $ this -> items ) : null ; }
Returns the last item from the collection.

@return mixed|null
Returns the last item from the collection .