src/AbstractEntity.php
private function setMutated(string $name, $value)
    {
        $setter = $this->getMutator($name, self::MUTATOR_SETTER);

        if (!empty($setter)) {
            try {
                $this->fields[$name] = call_user_func($setter, $value);
            } catch (\Exception $e) {
                //Exceptional situation, we are choosing to keep original field value
            }
        } else {
            $this->fields[$name] = $value;
        }
    }
private function setMutated(string $name, $value)
    {
        $setter = $this->getMutator($name, self::MUTATOR_SETTER);

        if (!empty($setter)) {
            try {
                $this->fields[$name] = call_user_func($setter, $value);
            } catch (\Exception $e) {
                //Exceptional situation, we are choosing to keep original field value
            }
        } else {
            $this->fields[$name] = $value;
        }
    }
private function setMutated ( string $ name , $ value ) { $ setter = $ this -> getMutator ( $ name , self :: MUTATOR_SETTER ) ; if ( ! empty ( $ setter ) ) { try { $ this -> fields [ $ name ] = call_user_func ( $ setter , $ value ) ; } catch ( \ Exception $ e ) { //Exceptional situation, we are choosing to keep original field value } } else { $ this -> fields [ $ name ] = $ value ; } }
Set value thought associated mutator.

@param string $name
@param mixed  $value
Set value thought associated mutator .