Поменял сигнатуру схемы

This commit is contained in:
Rinsvent 2022-04-02 10:47:30 +07:00
parent fc09440e24
commit 6166de2fb7

View File

@ -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;
}
}