public function setValue($value)
    {
        if ($value instanceof PhpVariable || Utils::isScalar($value)) {
            $this->value = $value;
        } else {
            $msg = "The 'value' argument must be a PHP scalar value, a PhpVariable object or null, '" . gettype($value) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setValue($value)
    {
        if ($value instanceof PhpVariable || Utils::isScalar($value)) {
            $this->value = $value;
        } else {
            $msg = "The 'value' argument must be a PHP scalar value, a PhpVariable object or null, '" . gettype($value) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setValue ( $ value ) { if ( $ value instanceof PhpVariable || Utils :: isScalar ( $ value ) ) { $ this -> value = $ value ; } else { $ msg = "The 'value' argument must be a PHP scalar value, a PhpVariable object or null, '" . gettype ( $ value ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the value of the argument. It can be a PhpVariable object or PHP scalar value or null.

@param mixed $value A PHP scalar value or a PhpVariable object or null or a PhpVariable object.
@throws InvalidArgumentException If $value is not a PHP scalar value nor a PhpVariable object nor null.
Set the value of the argument . It can be a PhpVariable object or PHP scalar value or null .