@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildStaticCall
Function: buildStaticCall()
ts
function buildStaticCall(
className,
name,
args,
attributes?): PhpExprStaticCall;Builds a PHP static method call expression node.
Parameters
className
The name of the class, either a PhpName or an expression.
name
The name of the static method, either an identifier or an expression.
args
PhpArg[] = []
An array of PhpArg nodes representing the method arguments.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprStaticCall node.
