src/ORM/PaginatedList.php
public function LastItem()
    {
        $pageLength = $this->getPageLength();
        if (!$pageLength) {
            return $this->getTotalItems();
        } elseif ($start = $this->getPageStart()) {
            return min($start + $pageLength, $this->getTotalItems());
        } else {
            return min($pageLength, $this->getTotalItems());
        }
    }
public function LastItem()
    {
        $pageLength = $this->getPageLength();
        if (!$pageLength) {
            return $this->getTotalItems();
        } elseif ($start = $this->getPageStart()) {
            return min($start + $pageLength, $this->getTotalItems());
        } else {
            return min($pageLength, $this->getTotalItems());
        }
    }
public function LastItem ( ) { $ pageLength = $ this -> getPageLength ( ) ; if ( ! $ pageLength ) { return $ this -> getTotalItems ( ) ; } elseif ( $ start = $ this -> getPageStart ( ) ) { return min ( $ start + $ pageLength , $ this -> getTotalItems ( ) ) ; } else { return min ( $ pageLength , $ this -> getTotalItems ( ) ) ; } }
Returns the number of the last item being displayed on this page.

@return int
Returns the number of the last item being displayed on this page .