@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildPropertyFetch
Function: buildPropertyFetch()
ts
function buildPropertyFetch(
variable,
name,
attributes?): PhpExprPropertyFetch;Builds a PHP property fetch expression node.
Parameters
variable
The variable or expression representing the object.
name
The name of the property, either an identifier or an expression.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprPropertyFetch node.
