src/Element.php
public function setValue(string $value = null) : Element
    {
        $this->value = $value;
        if (isset($this->model)) {
            $this->model->{$this->attributes['name']} = $value;
        }
        return $this;
    }
public function setValue(string $value = null) : Element
    {
        $this->value = $value;
        if (isset($this->model)) {
            $this->model->{$this->attributes['name']} = $value;
        }
        return $this;
    }
public function setValue ( string $ value = null ) : Element { $ this -> value = $ value ; if ( isset ( $ this -> model ) ) { $ this -> model -> { $ this -> attributes [ 'name' ] } = $ value ; } return $ this ; }
Sets the current value of this element.

@param mixed $value The new value.
@return self
Sets the current value of this element .