/** * @param null|mixed $value */ function update_value($value = null) { if (!is_null($value)) { $this->set_value($value); } if ($this->has_storage()) { $this->storage->update_value($this->value()); } }