@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildParam
Function: buildParam()
ts
function buildParam(
variable,
options,
attributes?): PhpParam;Builds a PHP parameter node.
Parameters
variable
The variable expression for the parameter.
options
Optional configuration for the parameter (type, by reference, variadic, default value, flags, attribute groups, hooks).
attrGroups?
byRef?
boolean
default?
PhpExpr | null
flags?
number
hooks?
type?
PhpType | null
variadic?
boolean
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpParam node.
