public function commit() : void
    {
        if (null === $this->is_valid) {
            $this->validate();
        }
        if ($this->is_valid && $this->user_value != null) {
            $this->default_value = $this->user_value;
        }
        $this->user_value = null;
        $this->is_valid = null;
        $this->is_changed = false;
    }
public function commit() : void
    {
        if (null === $this->is_valid) {
            $this->validate();
        }
        if ($this->is_valid && $this->user_value != null) {
            $this->default_value = $this->user_value;
        }
        $this->user_value = null;
        $this->is_valid = null;
        $this->is_changed = false;
    }
public function commit ( ) : void { if ( null === $ this -> is_valid ) { $ this -> validate ( ) ; } if ( $ this -> is_valid && $ this -> user_value != null ) { $ this -> default_value = $ this -> user_value ; } $ this -> user_value = null ; $ this -> is_valid = null ; $ this -> is_changed = false ; }
After the form is saved, use commit to "save" the input values. This replaces the default value with the input
value, and resets isValid to null and isChanged to false.
After the form is saved use commit to save the input values . This replaces the default value with the input value and resets isValid to null and isChanged to false .