public function update($operator, Expression $operand) { if ($this->operator === $operator && $this->operand === $operand) { return $this; } return new self($operator, $operand); }