@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildVariable
Function: buildVariable()
ts
function buildVariable(name, attributes?): PhpExprVariable;Builds a PHP variable expression node.
Parameters
name
The name of the variable, either a string or a PhpExpr for dynamic variable names.
string | PhpExpr
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprVariable node.
