lib/mail/Substitution.php
public function setValue($value)
    {
        if (!is_string($value) && !is_array($value) && !is_object($value) &&!is_bool($value) &&!is_int($value)) {
            throw new TypeException('$value must be of type string, array or object.');
        }
        $this->value = $value;
    }
public function setValue($value)
    {
        if (!is_string($value) && !is_array($value) && !is_object($value) &&!is_bool($value) &&!is_int($value)) {
            throw new TypeException('$value must be of type string, array or object.');
        }
        $this->value = $value;
    }
public function setValue ( $ value ) { if ( ! is_string ( $ value ) && ! is_array ( $ value ) && ! is_object ( $ value ) && ! is_bool ( $ value ) && ! is_int ( $ value ) ) { throw new TypeException ( '$value must be of type string, array or object.' ) ; } $ this -> value = $ value ; }
Add the value on a Substitution object

@param string|array|bool|int $value Substitution value

@throws TypeException
@return null
Add the value on a Substitution object