Skip to content

Commit

Permalink
Removed value object AggregateId
Browse files Browse the repository at this point in the history
  • Loading branch information
tg666 committed Apr 19, 2024
1 parent fe66466 commit 484f2f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
13 changes: 0 additions & 13 deletions src/ArchitectureBundle/Domain/ValueObject/AggregateId.php

This file was deleted.

16 changes: 0 additions & 16 deletions src/ArchitectureBundle/Domain/ValueObject/UuidValueTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@ public static function fromSafeNative(mixed $native): static
}
}

/**
* @deprecated
*/
public static function fromAggregateId(AggregateId $aggregateId): static
{
return self::fromUuid($aggregateId->toUuid());
}

public static function isValid(mixed $native): bool
{
return is_string($native) && Uuid::isValid($native);
Expand All @@ -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());
Expand Down

0 comments on commit 484f2f1

Please sign in to comment.