From f065a665d8dde08956ef0cb8f817a459cdc4c717 Mon Sep 17 00:00:00 2001 From: Unay Santisteban Date: Fri, 15 Jan 2021 18:57:39 +0100 Subject: [PATCH] Feature/Added Data Transfer Object. (#11) - Added base abstract class extended from Spatie/DataTransferObject to handle DTO's. --- composer.json | 3 ++- src/Application/DTO/DTO.php | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 src/Application/DTO/DTO.php diff --git a/composer.json b/composer.json index 120cd8c..76d1115 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ "ext-json": "*", "ramsey/uuid": "^4.1", "nesbot/carbon": "^2.40", - "illuminate/collections": "^8.20" + "illuminate/collections": "^8.20", + "spatie/data-transfer-object": "^2.6" }, "require-dev": { "ext-xdebug": "*", diff --git a/src/Application/DTO/DTO.php b/src/Application/DTO/DTO.php new file mode 100644 index 0000000..f2aede4 --- /dev/null +++ b/src/Application/DTO/DTO.php @@ -0,0 +1,22 @@ + + * @package OtherCode\ComplexHeart\Application\DTO + */ +abstract class DTO extends DataTransferObject +{ + +} \ No newline at end of file