@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildInstanceof
Function: buildInstanceof()
ts
function buildInstanceof(
expr,
className,
attributes?): PhpExprInstanceof;Builds a PHP instanceof expression node.
Parameters
expr
The expression to check.
className
The class name to check against, either a PhpName or an expression.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprInstanceof node.
