public function offset($value) { $property = $this->unions ? 'unionOffset' : 'offset'; $this->{$property} = max(0, $value); return $this; }
/** * @param $value * @return $this */ public function applyOffset($value) { /** * Save to conditons. */ $this->addCondition('offset', $value); $this->model = $this->model->offset($value); return $this; }