gossi\codegen\model\parts\ValuePart::setValue PHP Method

setValue() public method

Sets the value
public setValue ( string | integer | float | boolean | null | PhpConstant $value )
$value string | integer | float | boolean | null | gossi\codegen\model\PhpConstant
    public function setValue($value)
    {
        if (!$this->isPrimitive($value)) {
            throw new \InvalidArgumentException('Use setValue() only for primitives and PhpConstant, anyway use setExpression() instead.');
        }
        $this->value = $value;
        $this->hasValue = true;
        return $this;
    }