gossi\codegen\parser\visitor\parts\ValueParserPart::getPrimitiveValue PHP Method

getPrimitiveValue() private method

Returns the primitive value
private getPrimitiveValue ( PhpParser\Node $node ) : mixed
$node PhpParser\Node
return mixed
    private function getPrimitiveValue(Node $node)
    {
        if ($this->isBool($node)) {
            return (bool) $this->getExpression($node);
        }
        if ($this->isNull($node)) {
            return null;
        }
        return $node->value;
    }