src/Viserio/Component/Pagination/Paginator.php
public function toArray(): array
    {
        return [
            'per_page'      => $this->getItemsPerPage(),
            'current_page'  => $this->getCurrentPage(),
            'next_page_url' => $this->getNextPageUrl(),
            'prev_page_url' => $this->getPreviousPageUrl(),
            'from'          => $this->getFirstItem(),
            'to'            => $this->getLastItem(),
            'data'          => $this->items->toArray(),
            'path'          => $this->path,
        ];
    }
public function toArray(): array
    {
        return [
            'per_page'      => $this->getItemsPerPage(),
            'current_page'  => $this->getCurrentPage(),
            'next_page_url' => $this->getNextPageUrl(),
            'prev_page_url' => $this->getPreviousPageUrl(),
            'from'          => $this->getFirstItem(),
            'to'            => $this->getLastItem(),
            'data'          => $this->items->toArray(),
            'path'          => $this->path,
        ];
    }
{@inheritdoc}