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

isPrimitive() private method

Returns whether the given value is a primitive
private isPrimitive ( mixed $value ) : boolean
$value mixed
return boolean
    private function isPrimitive($value)
    {
        return is_string($value) || is_int($value) || is_float($value) || is_bool($value) || is_null($value) || $value instanceof PhpConstant;
    }