@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildMatch
Function: buildMatch()
ts
function buildMatch(
cond,
arms,
attributes?): PhpExprMatch;Builds a PHP match expression node.
Parameters
cond
The expression to match against.
arms
An array of PhpMatchArm nodes.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprMatch node.
