Contao\Database\Result::last PHP Method

last() public method

Go to the last row of the current result
public last ( ) : Result | boolean
return Result | boolean The result object or false if there is no last row
    public function last()
    {
        $this->intIndex = $this->count() - 1;
        $this->blnDone = true;
        $this->arrCache = $this->resultSet[$this->intIndex];
        return $this;
    }