deprecated; } public function set_deprecated($deprecated) { $this->deprecated = $deprecated; } public function get_value() { return $this->value; } public function set_value($new_value) { $this->value = $new_value; } public function get_title() { return $this->title; } public function get_name() { return $this->name; } public function get_allow_empty() { return $this->allow_empty; } public function set_allow_empty($allow_empty) { $this->allow_empty = $allow_empty; } public function jsonSerialize(): mixed { return $this->value; } /** * Basic updateFromFormInput method * * {@inheritDoc} * @see mtekk\adminKit\setting::maybe_update_from_form_input() */ public function maybe_update_from_form_input($input, $bool_ignore_missing = false) { if(isset($input[$this->get_opt_name()])) { $this->set_value($this->validate($input[$this->get_opt_name()])); } } }