value)) { throw new \DomainException('value must be a valid UUID v7'); } } #[\Override] public function __toString(): string { return $this->value->toString(); } public function equals(mixed $other): bool { return $other instanceof self && $this->value->equals($other->value); } }