/** * Apply pagination to current object. Will be applied only if internal paginator already * constructed. * * @return $this * @throws PaginationException */ protected function applyPagination() { if (empty($this->paginator)) { return $this; } return $this->paginator->paginate($this); }