/** * Update the pagination data accordingly to the results of the last request */ private function _updatePagination() { if (!empty($this->_response->getHeader(ApiHelper::HEADER_TOTAL_COUNT))) { $this->_owner->getPagination()->update(current($this->_response->getHeader(ApiHelper::HEADER_TOTAL_COUNT))); } }