Psecio\Parse\Rule\Helper\IsFunctionCallTrait::getCalledFunctionName PHP Метод

getCalledFunctionName() защищенный Метод

Get name of called function
protected getCalledFunctionName ( PhpParser\Node $node ) : string
$node PhpParser\Node
Результат string Empty string if name could not be parsed
    protected function getCalledFunctionName(Node $node)
    {
        if (!$node instanceof FuncCall) {
            throw new LogicException('Node must be an instance of FuncCall, found: ' . get_class($node));
        }
        if ($node->name instanceof Name) {
            return (string) $node->name;
        }
        return '';
    }