/** * Returns JSON response * @return array */ public function format() { return ['total' => $this->queryList->getTotal(), 'items' => $this->queryList->getItems()]; }