From 484f2f1ddfd87392fc68dc9e4e9b2afac632e595 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Glawaty?= Date: Fri, 19 Apr 2024 03:29:10 +0200 Subject: [PATCH] Removed value object `AggregateId` --- .../Domain/ValueObject/AggregateId.php | 13 ------------- .../Domain/ValueObject/UuidValueTrait.php | 16 ---------------- 2 files changed, 29 deletions(-) delete mode 100644 src/ArchitectureBundle/Domain/ValueObject/AggregateId.php 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());