src/Leevel/Page/Page.php
public function getToRecord(): ?int
    {
        if (!$this->canTotalRender()) {
            return null;
        }

        $to = $this->getFromRecord() + $this->getPerPage();

        return $to <= $this->getTotalRecord() ? $to : $this->getTotalRecord();
    }
public function getToRecord(): ?int
    {
        if (!$this->canTotalRender()) {
            return null;
        }

        $to = $this->getFromRecord() + $this->getPerPage();

        return $to <= $this->getTotalRecord() ? $to : $this->getTotalRecord();
    }
取得最后一个记录的编号.

@return null|int