public function setValue($value)
    {
        if (is_string($value) === true) {
            $this->value = $value;
        } else {
            $msg = "The 'value' argument must be a string, '" . gettype($value) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setValue($value)
    {
        if (is_string($value) === true) {
            $this->value = $value;
        } else {
            $msg = "The 'value' argument must be a string, '" . gettype($value) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setValue ( $ value ) { if ( is_string ( $ value ) === true ) { $ this -> value = $ value ; } else { $ msg = "The 'value' argument must be a string, '" . gettype ( $ value ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the value to pass to the object for the named parameter.

@param string $value A value as a string.
@throws \InvalidArgumentException If $value is not a string.
Set the value to pass to the object for the named parameter .