src/Leevel/Page/Page.php
public function toArray(): array
    {
        return [
            'per_page'     => $this->getPerPage(),
            'current_page' => $this->getCurrentPage(),
            'total_page'   => $this->getTotalPage(),
            'total_record' => $this->getTotalRecord(),
            'total_macro'  => $this->isTotalMacro(),
            'from'         => $this->getFromRecord(),
            'to'           => $this->getToRecord(),
        ];
    }
public function toArray(): array
    {
        return [
            'per_page'     => $this->getPerPage(),
            'current_page' => $this->getCurrentPage(),
            'total_page'   => $this->getTotalPage(),
            'total_record' => $this->getTotalRecord(),
            'total_macro'  => $this->isTotalMacro(),
            'from'         => $this->getFromRecord(),
            'to'           => $this->getToRecord(),
        ];
    }
对象转数组.

@return array