public function toArray() { return ['items' => $this->items, 'total' => $this->total, 'page' => $this->page, 'perPage' => $this->perPage, 'totalPageCount' => ceil($this->total / $this->perPage), 'appends' => $this->appendsToLink]; }