public function getLastRow()
    {
        if (!is_null($this->summaryRow)) {
            return $this->summaryRow;
        }

        if (count($this->rows) == 0) {
            return false;
        }

        return end($this->rows);
    }
public function getLastRow()
    {
        if (!is_null($this->summaryRow)) {
            return $this->summaryRow;
        }

        if (count($this->rows) == 0) {
            return false;
        }

        return end($this->rows);
    }
public function getLastRow ( ) { if ( ! is_null ( $ this -> summaryRow ) ) { return $ this -> summaryRow ; } if ( count ( $ this -> rows ) == 0 ) { return false ; } return end ( $ this -> rows ) ; }
Returns the last row of the DataTable. If there is a summary row, it
will always be considered the last row.

@return Row|false The last row or `false` if it cannot be found.
Returns the last row of the DataTable . If there is a summary row it will always be considered the last row .