public function __construct(DynamicOperand $operand1, $operator, $operand2 = null) { $this->operand1 = $operand1; $this->operator = $operator; $this->operand2 = $operand2; }