dto2data/src/Attribute/Schema.php
Rinsvent 5d35178bdf Рефакторинг
починил тесты
2021-08-24 23:21:40 +07:00

18 lines
367 B
PHP

<?php
namespace Rinsvent\DTO2Data\Attribute;
#[\Attribute(\Attribute::TARGET_ALL|\Attribute::IS_REPEATABLE)]
class Schema
{
public ?array $baseMap = null;
public function __construct(
public ?array $map = null,
/** @var string[] $tags */
public array $tags = ['default']
) {
$this->map = $map ?? $this->baseMap;
}
}