From 67490c16613daf9f43d1721f68381ea1cc7cfb83 Mon Sep 17 00:00:00 2001 From: Hugo Rafael Azevedo Date: Wed, 23 Mar 2022 18:19:50 +0000 Subject: [PATCH 1/3] refactor: move traits to new namespaces --- .../Datetime => }/Datetime/HasStaticFactoryMethodsTrait.php | 5 +---- src/Traits/Datetime/README.md | 1 - src/Traits/Entities/README.md | 1 - src/Traits/README.md | 3 --- src/Traits/ValueObjects/README.md | 1 - .../Traits}/CanMassAssignStateTrait.php | 2 +- .../Traits}/CanProcessEntityStateTrait.php | 2 +- .../Traits}/CanProcessOnLoadEventsTrait.php | 2 +- .../Traits}/CanProcessOnUpdateEventsTrait.php | 2 +- .../Traits}/CanSerializeAllToJsonTrait.php | 2 +- .../Traits}/HasConversionToPrimitiveValuesTrait.php | 2 +- .../Traits}/HasFieldCastingTrait.php | 2 +- .../Traits}/HasGuardedFieldsTrait.php | 2 +- .../Traits}/HasMappedFieldsTrait.php | 2 +- .../Traits}/HasRequiredFieldsTrait.php | 2 +- .../Traits}/HasRuleProcessingTrait.php | 2 +- src/ValueObjects/Traits/README.md | 3 +++ 17 files changed, 15 insertions(+), 21 deletions(-) rename src/{Traits/Datetime => }/Datetime/HasStaticFactoryMethodsTrait.php (90%) delete mode 100755 src/Traits/Datetime/README.md delete mode 100755 src/Traits/Entities/README.md delete mode 100755 src/Traits/README.md delete mode 100755 src/Traits/ValueObjects/README.md rename src/{Traits/Entities => ValueObjects/Traits}/CanMassAssignStateTrait.php (97%) rename src/{Traits/Entities => ValueObjects/Traits}/CanProcessEntityStateTrait.php (98%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/CanProcessOnLoadEventsTrait.php (95%) rename src/{Traits/Entities => ValueObjects/Traits}/CanProcessOnUpdateEventsTrait.php (96%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/CanSerializeAllToJsonTrait.php (96%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/HasConversionToPrimitiveValuesTrait.php (97%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/HasFieldCastingTrait.php (97%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/HasGuardedFieldsTrait.php (95%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/HasMappedFieldsTrait.php (97%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/HasRequiredFieldsTrait.php (96%) rename src/{Traits/ValueObjects => ValueObjects/Traits}/HasRuleProcessingTrait.php (96%) create mode 100755 src/ValueObjects/Traits/README.md diff --git a/src/Traits/Datetime/Datetime/HasStaticFactoryMethodsTrait.php b/src/Datetime/HasStaticFactoryMethodsTrait.php similarity index 90% rename from src/Traits/Datetime/Datetime/HasStaticFactoryMethodsTrait.php rename to src/Datetime/HasStaticFactoryMethodsTrait.php index 0cbb9bb..d7ccb14 100644 --- a/src/Traits/Datetime/Datetime/HasStaticFactoryMethodsTrait.php +++ b/src/Datetime/HasStaticFactoryMethodsTrait.php @@ -2,10 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\Datetime\Datetime; - -use HraDigital\Datatypes\Datetime\Datetime; -use HraDigital\Datatypes\Datetime\DateTimeZone; +namespace HraDigital\Datatypes\Datetime; trait HasStaticFactoryMethodsTrait { diff --git a/src/Traits/Datetime/README.md b/src/Traits/Datetime/README.md deleted file mode 100755 index 72e2465..0000000 --- a/src/Traits/Datetime/README.md +++ /dev/null @@ -1 +0,0 @@ -# Datetime object's configuration Traits diff --git a/src/Traits/Entities/README.md b/src/Traits/Entities/README.md deleted file mode 100755 index b83a7f1..0000000 --- a/src/Traits/Entities/README.md +++ /dev/null @@ -1 +0,0 @@ -# Entity's configuration Traits diff --git a/src/Traits/README.md b/src/Traits/README.md deleted file mode 100755 index 13a3449..0000000 --- a/src/Traits/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Object building related Traits - -In this namespace, you'll find Traits that will help configure your objects. diff --git a/src/Traits/ValueObjects/README.md b/src/Traits/ValueObjects/README.md deleted file mode 100755 index f1558dd..0000000 --- a/src/Traits/ValueObjects/README.md +++ /dev/null @@ -1 +0,0 @@ -# Value Object's configuration Traits diff --git a/src/Traits/Entities/CanMassAssignStateTrait.php b/src/ValueObjects/Traits/CanMassAssignStateTrait.php similarity index 97% rename from src/Traits/Entities/CanMassAssignStateTrait.php rename to src/ValueObjects/Traits/CanMassAssignStateTrait.php index 6eb648a..855a836 100644 --- a/src/Traits/Entities/CanMassAssignStateTrait.php +++ b/src/ValueObjects/Traits/CanMassAssignStateTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\Entities; +namespace HraDigital\Datatypes\ValueObjects\Traits; use HraDigital\Datatypes\Exceptions\Datatypes\ParameterOutOfRangeException; use HraDigital\Datatypes\ValueObjects\AbstractValueObject; diff --git a/src/Traits/Entities/CanProcessEntityStateTrait.php b/src/ValueObjects/Traits/CanProcessEntityStateTrait.php similarity index 98% rename from src/Traits/Entities/CanProcessEntityStateTrait.php rename to src/ValueObjects/Traits/CanProcessEntityStateTrait.php index 0de1761..169b021 100644 --- a/src/Traits/Entities/CanProcessEntityStateTrait.php +++ b/src/ValueObjects/Traits/CanProcessEntityStateTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\Entities; +namespace HraDigital\Datatypes\ValueObjects\Traits; use HraDigital\Datatypes\ValueObjects\AbstractValueObject; diff --git a/src/Traits/ValueObjects/CanProcessOnLoadEventsTrait.php b/src/ValueObjects/Traits/CanProcessOnLoadEventsTrait.php similarity index 95% rename from src/Traits/ValueObjects/CanProcessOnLoadEventsTrait.php rename to src/ValueObjects/Traits/CanProcessOnLoadEventsTrait.php index 56c0b51..733f0f4 100644 --- a/src/Traits/ValueObjects/CanProcessOnLoadEventsTrait.php +++ b/src/ValueObjects/Traits/CanProcessOnLoadEventsTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Gives onLoad event handling capabilities to class. diff --git a/src/Traits/Entities/CanProcessOnUpdateEventsTrait.php b/src/ValueObjects/Traits/CanProcessOnUpdateEventsTrait.php similarity index 96% rename from src/Traits/Entities/CanProcessOnUpdateEventsTrait.php rename to src/ValueObjects/Traits/CanProcessOnUpdateEventsTrait.php index db99dcf..4c30987 100644 --- a/src/Traits/Entities/CanProcessOnUpdateEventsTrait.php +++ b/src/ValueObjects/Traits/CanProcessOnUpdateEventsTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\Entities; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Gives onUpdate event handling capabilities to class. diff --git a/src/Traits/ValueObjects/CanSerializeAllToJsonTrait.php b/src/ValueObjects/Traits/CanSerializeAllToJsonTrait.php similarity index 96% rename from src/Traits/ValueObjects/CanSerializeAllToJsonTrait.php rename to src/ValueObjects/Traits/CanSerializeAllToJsonTrait.php index e0dd708..2904b9d 100644 --- a/src/Traits/ValueObjects/CanSerializeAllToJsonTrait.php +++ b/src/ValueObjects/Traits/CanSerializeAllToJsonTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Implements a \JsonSerializable that will collect all class attributes and returns them. diff --git a/src/Traits/ValueObjects/HasConversionToPrimitiveValuesTrait.php b/src/ValueObjects/Traits/HasConversionToPrimitiveValuesTrait.php similarity index 97% rename from src/Traits/ValueObjects/HasConversionToPrimitiveValuesTrait.php rename to src/ValueObjects/Traits/HasConversionToPrimitiveValuesTrait.php index 71a567a..c9f0511 100644 --- a/src/Traits/ValueObjects/HasConversionToPrimitiveValuesTrait.php +++ b/src/ValueObjects/Traits/HasConversionToPrimitiveValuesTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; use HraDigital\Datatypes\Collections\Linear\EntityCollection; use HraDigital\Datatypes\ValueObjects\AbstractValueObject; diff --git a/src/Traits/ValueObjects/HasFieldCastingTrait.php b/src/ValueObjects/Traits/HasFieldCastingTrait.php similarity index 97% rename from src/Traits/ValueObjects/HasFieldCastingTrait.php rename to src/ValueObjects/Traits/HasFieldCastingTrait.php index 72f1b80..21f9cd5 100644 --- a/src/Traits/ValueObjects/HasFieldCastingTrait.php +++ b/src/ValueObjects/Traits/HasFieldCastingTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Gives Field Casting capabilities to Value Object's diff --git a/src/Traits/ValueObjects/HasGuardedFieldsTrait.php b/src/ValueObjects/Traits/HasGuardedFieldsTrait.php similarity index 95% rename from src/Traits/ValueObjects/HasGuardedFieldsTrait.php rename to src/ValueObjects/Traits/HasGuardedFieldsTrait.php index 502c555..1bd1711 100644 --- a/src/Traits/ValueObjects/HasGuardedFieldsTrait.php +++ b/src/ValueObjects/Traits/HasGuardedFieldsTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Adds Guarded field's functionality to a Value Object. diff --git a/src/Traits/ValueObjects/HasMappedFieldsTrait.php b/src/ValueObjects/Traits/HasMappedFieldsTrait.php similarity index 97% rename from src/Traits/ValueObjects/HasMappedFieldsTrait.php rename to src/ValueObjects/Traits/HasMappedFieldsTrait.php index c2c2b5a..fbaa523 100644 --- a/src/Traits/ValueObjects/HasMappedFieldsTrait.php +++ b/src/ValueObjects/Traits/HasMappedFieldsTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Gives Field Mapping capabilities to Value Object's diff --git a/src/Traits/ValueObjects/HasRequiredFieldsTrait.php b/src/ValueObjects/Traits/HasRequiredFieldsTrait.php similarity index 96% rename from src/Traits/ValueObjects/HasRequiredFieldsTrait.php rename to src/ValueObjects/Traits/HasRequiredFieldsTrait.php index f7e739a..aa33a0e 100644 --- a/src/Traits/ValueObjects/HasRequiredFieldsTrait.php +++ b/src/ValueObjects/Traits/HasRequiredFieldsTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; use HraDigital\Datatypes\Exceptions\Entities\RequiredEntityValueMissingException; diff --git a/src/Traits/ValueObjects/HasRuleProcessingTrait.php b/src/ValueObjects/Traits/HasRuleProcessingTrait.php similarity index 96% rename from src/Traits/ValueObjects/HasRuleProcessingTrait.php rename to src/ValueObjects/Traits/HasRuleProcessingTrait.php index 73397ff..e43a3c9 100644 --- a/src/Traits/ValueObjects/HasRuleProcessingTrait.php +++ b/src/ValueObjects/Traits/HasRuleProcessingTrait.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace HraDigital\Datatypes\Traits\ValueObjects; +namespace HraDigital\Datatypes\ValueObjects\Traits; /** * Gives Field Rule processing capabilities to Value Object's diff --git a/src/ValueObjects/Traits/README.md b/src/ValueObjects/Traits/README.md new file mode 100755 index 0000000..2031191 --- /dev/null +++ b/src/ValueObjects/Traits/README.md @@ -0,0 +1,3 @@ +# Value Object building related Traits + +In this namespace, you'll find Traits that will help configure your Aggregates, Entities or Value Objects. From 8d2995f29f2ff57084fd5350e0316e07014ed565 Mon Sep 17 00:00:00 2001 From: Hugo Rafael Azevedo Date: Wed, 23 Mar 2022 18:20:36 +0000 Subject: [PATCH 2/3] refactor: update class references --- src/Datetime/Datetime.php | 1 - src/ValueObjects/AbstractValueObject.php | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/Datetime/Datetime.php b/src/Datetime/Datetime.php index 1aa57e3..38789ad 100644 --- a/src/Datetime/Datetime.php +++ b/src/Datetime/Datetime.php @@ -6,7 +6,6 @@ use DateTimeImmutable; use HraDigital\Datatypes\Scalar\Str; -use HraDigital\Datatypes\Traits\Datetime\Datetime\HasStaticFactoryMethodsTrait; /** * Datetime utility class. diff --git a/src/ValueObjects/AbstractValueObject.php b/src/ValueObjects/AbstractValueObject.php index 911034d..ddc8e77 100644 --- a/src/ValueObjects/AbstractValueObject.php +++ b/src/ValueObjects/AbstractValueObject.php @@ -7,13 +7,13 @@ use HraDigital\Datatypes\Collections\Linear\EntityCollection; use HraDigital\Datatypes\Exceptions\Entities\RequiredEntityValueMissingException; use HraDigital\Datatypes\Exceptions\Entities\UnexpectedEntityValueException; -use HraDigital\Datatypes\Traits\ValueObjects\CanProcessOnLoadEventsTrait; -use HraDigital\Datatypes\Traits\ValueObjects\HasConversionToPrimitiveValuesTrait; -use HraDigital\Datatypes\Traits\ValueObjects\HasFieldCastingTrait; -use HraDigital\Datatypes\Traits\ValueObjects\HasGuardedFieldsTrait; -use HraDigital\Datatypes\Traits\ValueObjects\HasMappedFieldsTrait; -use HraDigital\Datatypes\Traits\ValueObjects\HasRequiredFieldsTrait; -use HraDigital\Datatypes\Traits\ValueObjects\HasRuleProcessingTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessOnLoadEventsTrait; +use HraDigital\Datatypes\ValueObjects\Traits\HasConversionToPrimitiveValuesTrait; +use HraDigital\Datatypes\ValueObjects\Traits\HasFieldCastingTrait; +use HraDigital\Datatypes\ValueObjects\Traits\HasGuardedFieldsTrait; +use HraDigital\Datatypes\ValueObjects\Traits\HasMappedFieldsTrait; +use HraDigital\Datatypes\ValueObjects\Traits\HasRequiredFieldsTrait; +use HraDigital\Datatypes\ValueObjects\Traits\HasRuleProcessingTrait; /** * Abstract Base Value Object class for all Domain Entities/Value Objects. From fc92073051f7b80082cc56bc3460112627307ac8 Mon Sep 17 00:00:00 2001 From: Hugo Rafael Azevedo Date: Wed, 23 Mar 2022 18:20:46 +0000 Subject: [PATCH 3/3] tests: adapt tests --- tests/Unit/Attributes/GeneralTraitsVO.php | 4 ++-- tests/Unit/Attributes/LocationTraitsVO.php | 2 +- tests/Unit/Attributes/PersonalTraitsVO.php | 2 +- tests/Unit/ValueObjects/AbstractValueObjectTest.php | 2 -- tests/Unit/ValueObjects/TestingAggregate.php | 2 +- tests/Unit/ValueObjects/TestingNestedValueObject.php | 6 +++--- tests/Unit/ValueObjects/TestingValueObject.php | 6 +++--- 7 files changed, 11 insertions(+), 13 deletions(-) diff --git a/tests/Unit/Attributes/GeneralTraitsVO.php b/tests/Unit/Attributes/GeneralTraitsVO.php index feae6ff..6fa863e 100644 --- a/tests/Unit/Attributes/GeneralTraitsVO.php +++ b/tests/Unit/Attributes/GeneralTraitsVO.php @@ -4,7 +4,6 @@ namespace HraDigital\Tests\Datatypes\Unit\Attributes; -use HraDigital\Datatypes\Traits\Entities\CanProcessOnUpdateEventsTrait; use HraDigital\Datatypes\Attributes\General\HasActiveTrait; use HraDigital\Datatypes\Attributes\General\HasAliasTrait; use HraDigital\Datatypes\Attributes\General\HasCreatedAtTrait; @@ -18,11 +17,12 @@ use HraDigital\Datatypes\Attributes\General\HasPositiveIntegerIDTrait; use HraDigital\Datatypes\Attributes\General\HasPublishedTrait; use HraDigital\Datatypes\Attributes\General\HasSeoFieldsTrait; +use HraDigital\Datatypes\Attributes\General\HasSurnameTrait; use HraDigital\Datatypes\Attributes\General\HasTitleTrait; use HraDigital\Datatypes\Attributes\General\HasUpdatableUpdatedAtTrait; use HraDigital\Datatypes\Attributes\General\HasUuidTrait; -use HraDigital\Datatypes\Attributes\General\HasSurnameTrait; use HraDigital\Datatypes\ValueObjects\AbstractValueObject; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessOnUpdateEventsTrait; /** * Testing Value Object for General Entity Traits. diff --git a/tests/Unit/Attributes/LocationTraitsVO.php b/tests/Unit/Attributes/LocationTraitsVO.php index 2bc9ec8..1ce96eb 100644 --- a/tests/Unit/Attributes/LocationTraitsVO.php +++ b/tests/Unit/Attributes/LocationTraitsVO.php @@ -4,7 +4,6 @@ namespace HraDigital\Tests\Datatypes\Unit\Attributes; -use HraDigital\Datatypes\Traits\Entities\CanProcessOnUpdateEventsTrait; use HraDigital\Datatypes\Attributes\Location\HasAddressTrait; use HraDigital\Datatypes\Attributes\Location\HasCityTrait; use HraDigital\Datatypes\Attributes\Location\HasCountryCodeTrait; @@ -18,6 +17,7 @@ use HraDigital\Datatypes\Attributes\Location\HasStreetNumberTrait; use HraDigital\Datatypes\Attributes\Location\HasStreetTrait; use HraDigital\Datatypes\ValueObjects\AbstractValueObject; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessOnUpdateEventsTrait; /** * Testing Value Object for Location Entity Traits. diff --git a/tests/Unit/Attributes/PersonalTraitsVO.php b/tests/Unit/Attributes/PersonalTraitsVO.php index b798c4c..e3595f3 100644 --- a/tests/Unit/Attributes/PersonalTraitsVO.php +++ b/tests/Unit/Attributes/PersonalTraitsVO.php @@ -4,13 +4,13 @@ namespace HraDigital\Tests\Datatypes\Unit\Attributes; -use HraDigital\Datatypes\Traits\Entities\CanProcessOnUpdateEventsTrait; use HraDigital\Datatypes\Attributes\Personal\HasCountryOfBirthTrait; use HraDigital\Datatypes\Attributes\Personal\HasDateOfBirthTrait; use HraDigital\Datatypes\Attributes\Personal\HasGenderTrait; use HraDigital\Datatypes\Attributes\Personal\HasNationalityTrait; use HraDigital\Datatypes\Attributes\Personal\HasPhotoTrait; use HraDigital\Datatypes\ValueObjects\AbstractValueObject; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessOnUpdateEventsTrait; /** * Testing Value Object for Personal Entity Traits. diff --git a/tests/Unit/ValueObjects/AbstractValueObjectTest.php b/tests/Unit/ValueObjects/AbstractValueObjectTest.php index 34a1514..429fcfd 100644 --- a/tests/Unit/ValueObjects/AbstractValueObjectTest.php +++ b/tests/Unit/ValueObjects/AbstractValueObjectTest.php @@ -5,9 +5,7 @@ namespace HraDigital\Tests\Datatypes\Unit\ValueObjects; use HraDigital\Datatypes\Exceptions\Entities\RequiredEntityValueMissingException; -use HraDigital\Datatypes\Exceptions\Entities\UnexpectedEntityValueException; use HraDigital\Datatypes\Exceptions\Datatypes\ParameterOutOfRangeException; -use HraDigital\Datatypes\Datetime\Datetime; use HraDigital\Datatypes\Scalar\Str; use HraDigital\Tests\Datatypes\AbstractBaseTestCase; diff --git a/tests/Unit/ValueObjects/TestingAggregate.php b/tests/Unit/ValueObjects/TestingAggregate.php index 469c2ff..d7b09cc 100644 --- a/tests/Unit/ValueObjects/TestingAggregate.php +++ b/tests/Unit/ValueObjects/TestingAggregate.php @@ -6,7 +6,7 @@ use HraDigital\Datatypes\Datetime\Datetime; use HraDigital\Datatypes\Scalar\Str; -use HraDigital\Datatypes\Traits\ValueObjects\CanSerializeAllToJsonTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanSerializeAllToJsonTrait; /** * Test for JSON Serializable Object. diff --git a/tests/Unit/ValueObjects/TestingNestedValueObject.php b/tests/Unit/ValueObjects/TestingNestedValueObject.php index e2b4d7a..7c497a0 100644 --- a/tests/Unit/ValueObjects/TestingNestedValueObject.php +++ b/tests/Unit/ValueObjects/TestingNestedValueObject.php @@ -6,9 +6,9 @@ use HraDigital\Datatypes\Datetime\Datetime; use HraDigital\Datatypes\Scalar\Str; -use HraDigital\Datatypes\Traits\Entities\CanMassAssignStateTrait; -use HraDigital\Datatypes\Traits\Entities\CanProcessEntityStateTrait; -use HraDigital\Datatypes\Traits\Entities\CanProcessOnUpdateEventsTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanMassAssignStateTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessEntityStateTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessOnUpdateEventsTrait; use HraDigital\Datatypes\Attributes\General\HasActiveTrait; use HraDigital\Datatypes\Attributes\General\HasTitleTrait; use HraDigital\Datatypes\Attributes\General\HasUpdatableUpdatedAtTrait; diff --git a/tests/Unit/ValueObjects/TestingValueObject.php b/tests/Unit/ValueObjects/TestingValueObject.php index 8b9eedb..8d62a64 100644 --- a/tests/Unit/ValueObjects/TestingValueObject.php +++ b/tests/Unit/ValueObjects/TestingValueObject.php @@ -6,9 +6,9 @@ use HraDigital\Datatypes\Datetime\Datetime; use HraDigital\Datatypes\Scalar\Str; -use HraDigital\Datatypes\Traits\Entities\CanMassAssignStateTrait; -use HraDigital\Datatypes\Traits\Entities\CanProcessEntityStateTrait; -use HraDigital\Datatypes\Traits\Entities\CanProcessOnUpdateEventsTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanMassAssignStateTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessEntityStateTrait; +use HraDigital\Datatypes\ValueObjects\Traits\CanProcessOnUpdateEventsTrait; use HraDigital\Datatypes\Attributes\General\HasActiveTrait; use HraDigital\Datatypes\Attributes\General\HasEmailTrait; use HraDigital\Datatypes\Attributes\General\HasPositiveIntegerIDTrait;