public function last()
    {
        $lastIndex = (count($this->source) - 1);
        if (isset($this->source[$lastIndex])) {
            return $this->source[$lastIndex];
        }

        return null;
    }
public function last()
    {
        $lastIndex = (count($this->source) - 1);
        if (isset($this->source[$lastIndex])) {
            return $this->source[$lastIndex];
        }

        return null;
    }
public function last ( ) { $ lastIndex = ( count ( $ this -> source ) - 1 ) ; if ( isset ( $ this -> source [ $ lastIndex ] ) ) { return $ this -> source [ $ lastIndex ] ; } return null ; }
Return the last item.

@return mixed
Return the last item .