public function offset($value) { $this->offset = is_numeric($value) ? intval($value) : null; return $this; }