@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildBinaryOperation
Function: buildBinaryOperation()
ts
function buildBinaryOperation(
operator,
left,
right,
attributes?): PhpExprBinaryOp;Builds a PHP binary operation expression node.
Parameters
operator
The binary operator (e.g., 'Plus', 'BooleanAnd').
left
The left-hand side expression.
right
The right-hand side expression.
attributes?
Readonly<Record<string, unknown>>
Optional attributes for the node.
Returns
A PhpExprBinaryOp node.
