public function makeNode($leftOperand, $rightOperand)
    {
        $leftOperand = $this->sanitize($leftOperand);
        $rightOperand = $this->sanitize($rightOperand);

        $node = $this->numericTerms($leftOperand, $rightOperand);
        if ($node) return $node;

        return new ExpressionNode($leftOperand, '+', $rightOperand);
    }
public function makeNode($leftOperand, $rightOperand)
    {
        $leftOperand = $this->sanitize($leftOperand);
        $rightOperand = $this->sanitize($rightOperand);

        $node = $this->numericTerms($leftOperand, $rightOperand);
        if ($node) return $node;

        return new ExpressionNode($leftOperand, '+', $rightOperand);
    }
public function makeNode ( $ leftOperand , $ rightOperand ) { $ leftOperand = $ this -> sanitize ( $ leftOperand ) ; $ rightOperand = $ this -> sanitize ( $ rightOperand ) ; $ node = $ this -> numericTerms ( $ leftOperand , $ rightOperand ) ; if ( $ node ) return $ node ; return new ExpressionNode ( $ leftOperand , '+' , $ rightOperand ) ; }
Create a Node representing 'leftOperand + rightOperand'

Using some simplification rules, create a NumberNode or ExpressionNode
giving an AST correctly representing 'leftOperand + rightOperand'.

### Simplification rules:

- To simplify the use of the function, convert integer or float params to NumberNodes
- If $leftOperand and $rightOperand are both NumberNodes, return a single NumberNode containing their sum
- If $leftOperand or $rightOperand are NumberNodes representing 0, return the other term unchanged

@param Node|int $leftOperand First term
@param Node|int $rightOperand Second term
@retval Node
Create a Node representing leftOperand + rightOperand