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