Метод | Описание | |
---|---|---|
countCalledFunctionArguments ( PhpParser\Node $node ) : integer | Count the arguments of called function | |
getCalledFunctionArgument ( PhpParser\Node $node, integer $index ) : PhpParser\Node\Arg | Get argument of called function | |
getCalledFunctionName ( PhpParser\Node $node ) : string | Get name of called function | |
isFunctionCall ( PhpParser\Node $node, string | string[] $names = '' ) : boolean | Check if $node is a function call |
protected countCalledFunctionArguments ( PhpParser\Node $node ) : integer | ||
$node | PhpParser\Node | |
Результат | integer |
protected getCalledFunctionArgument ( PhpParser\Node $node, integer $index ) : PhpParser\Node\Arg | ||
$node | PhpParser\Node | |
$index | integer | Index of argument to fetch |
Результат | PhpParser\Node\Arg | If argument is not found an empty string is returned |
protected getCalledFunctionName ( PhpParser\Node $node ) : string | ||
$node | PhpParser\Node | |
Результат | string | Empty string if name could not be parsed |
protected isFunctionCall ( PhpParser\Node $node, string | string[] $names = '' ) : boolean | ||
$node | PhpParser\Node | |
$names | string | string[] | One or more function names to search for |
Результат | boolean |