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

isBool() private method

Returns whether this node is a boolean value
private isBool ( PhpParser\Node $node ) : boolean
$node PhpParser\Node
return boolean
    private function isBool(Node $node)
    {
        if ($node instanceof ConstFetch) {
            $const = $node->name->parts[0];
            if (isset($this->constMap[$const])) {
                return is_bool($this->constMap[$const]);
            }
            return is_bool($const);
        }
    }