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

master
Rinsvent 3 years ago
parent fc09440e24
commit 6166de2fb7
  1. 8
      src/Attribute/Schema.php

@ -6,11 +6,13 @@ namespace Rinsvent\DTO2Data\Attribute;
#[\Attribute(\Attribute::TARGET_ALL|\Attribute::IS_REPEATABLE)] #[\Attribute(\Attribute::TARGET_ALL|\Attribute::IS_REPEATABLE)]
class Schema class Schema
{ {
public ?array $baseMap = null;
public function __construct( public function __construct(
public ?array $map = null, public ?array $map = null,
) { ) {
$this->map = $map ?? $this->baseMap; }
public function getMap(): array
{
return $this->map;
} }
} }

Loading…
Cancel
Save