Поменял сигнатуру схемы
This commit is contained in:
parent
fc09440e24
commit
6166de2fb7
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user