diff --git a/src/ArchitectureBundle/Domain/ValueObject/AggregateId.php b/src/ArchitectureBundle/Domain/ValueObject/AggregateId.php deleted file mode 100644 index a364bdd..0000000 --- a/src/ArchitectureBundle/Domain/ValueObject/AggregateId.php +++ /dev/null @@ -1,13 +0,0 @@ -toUuid()); - } - public static function isValid(mixed $native): bool { return is_string($native) && Uuid::isValid($native); @@ -77,14 +69,6 @@ public function toNative(): string return $this->value->toString(); } - /** - * @deprecated - */ - public function toAggregateId(): AggregateId - { - return AggregateId::fromUuid($this->toUuid()); - } - public function equals(ValueObjectInterface $object): bool { return $object instanceof static && $object->toUuid()->equals($this->toUuid());