From 6166de2fb7ede3b5432b2c7d8200132a2d45c711 Mon Sep 17 00:00:00 2001 From: Rinsvent Date: Sat, 2 Apr 2022 10:47:30 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB=20?= =?UTF-8?q?=D1=81=D0=B8=D0=B3=D0=BD=D0=B0=D1=82=D1=83=D1=80=D1=83=20=D1=81?= =?UTF-8?q?=D1=85=D0=B5=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Attribute/Schema.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Attribute/Schema.php b/src/Attribute/Schema.php index 92403a9..799a4d8 100644 --- a/src/Attribute/Schema.php +++ b/src/Attribute/Schema.php @@ -6,11 +6,13 @@ namespace Rinsvent\DTO2Data\Attribute; #[\Attribute(\Attribute::TARGET_ALL|\Attribute::IS_REPEATABLE)] class Schema { - public ?array $baseMap = null; - public function __construct( public ?array $map = null, ) { - $this->map = $map ?? $this->baseMap; + } + + public function getMap(): array + { + return $this->map; } }