Skip to content

Commit 6b5e533

Browse files
improvement: Use Stringable interface for EntityId model
1 parent e7129d3 commit 6b5e533

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/ddd-extensions/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fusonic/ddd-extensions",
33
"license": "MIT",
4-
"version": "3.0.0",
4+
"version": "3.0.1",
55
"description": "Symfony domain-driven design building blocks for usage with Doctrine ORM.",
66
"type": "library",
77
"authors": [

packages/ddd-extensions/src/Domain/Model/EntityId.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99

1010
namespace Fusonic\DDDExtensions\Domain\Model;
1111

12-
abstract readonly class EntityId extends ValueObject
12+
abstract readonly class EntityId extends ValueObject implements \Stringable
1313
{
14-
abstract public function __toString(): string;
15-
1614
abstract public function isDefined(): bool;
1715

1816
abstract public function getValue(): mixed;

0 commit comments

Comments
 (0)