Total Complexity | 1 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | #[\Attribute(\Attribute::TARGET_CLASS)] |
||
12 | class Discriminator implements SerializerAttribute |
||
13 | { |
||
14 | use AnnotationUtilsTrait; |
||
15 | |||
16 | /** @var array<string> */ |
||
17 | public $map = []; |
||
18 | |||
19 | /** @var string */ |
||
20 | public $field = 'type'; |
||
21 | |||
22 | /** @var bool */ |
||
23 | public $disabled = false; |
||
24 | |||
25 | /** @var string[] */ |
||
26 | public $groups = []; |
||
27 | |||
28 | public function __construct(array $values = [], string $field = 'type', array $groups = [], array $map = [], bool $disabled = false) |
||
33 |