public function setValue($value, bool $transform = false)
    {
        if (null === $value)
            $this->value = null;
        elseif ($transform && $this->transformer !== null)
            $this->value = $this->transformer->deserialize($value);
        else
            $this->value = $value;

        return $this;
    }
public function setValue($value, bool $transform = false)
    {
        if (null === $value)
            $this->value = null;
        elseif ($transform && $this->transformer !== null)
            $this->value = $this->transformer->deserialize($value);
        else
            $this->value = $value;

        return $this;
    }
public function setValue ( $ value , bool $ transform = false ) { if ( null === $ value ) $ this -> value = null ; elseif ( $ transform && $ this -> transformer !== null ) $ this -> value = $ this -> transformer -> deserialize ( $ value ) ; else $ this -> value = $ value ; return $ this ; }
Change the value for this field. The value is not validated, this is
just to be referred to later, for example for showing to the visitor

@param mixed $value The value to set
@param bool $transform Whether to run the transformer on it before setting
@return FormField Provides fluent interface
Change the value for this field . The value is not validated this is just to be referred to later for example for showing to the visitor