vo/Page.php
public function toArray()
    {
        return [
            'content' => $this->getContent(),
            'pageNumber' => $this->getPageNumber(),
            'itemsNumber' => $this->getItemsNumber(),
            'totalPages' => $this->getTotalPages(),
            'totalItems' => $this->getTotalItems(),
            'hasNext' => $this->hasNext(),
        ];
    }
public function toArray()
    {
        return [
            'content' => $this->getContent(),
            'pageNumber' => $this->getPageNumber(),
            'itemsNumber' => $this->getItemsNumber(),
            'totalPages' => $this->getTotalPages(),
            'totalItems' => $this->getTotalItems(),
            'hasNext' => $this->hasNext(),
        ];
    }
Get the instance as an array.

@return array