days <= 0) { throw new \DomainException('Coupon Validity days must be positive.'); } } #[\Override] public function equals(mixed $other): bool { return $other instanceof self && $this->days === $other->days && $this->until == $other->until; } }