/** * Definition of offset to the left and to the right of the selected page. * * @return NavigateRange */ protected function definitionOffset() { $this->left_offset = (int) floor(($this->config->getMaxNavigate() - 1) / 2); $this->right_offset = (int) ceil(($this->config->getMaxNavigate() - 1) / 2); return $this; }