Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | #[\Attribute(\Attribute::TARGET_PROPERTY)] |
||
12 | final class UnionDiscriminator implements SerializerAttribute |
||
13 | { |
||
14 | use AnnotationUtilsTrait; |
||
15 | |||
16 | /** @var array<string> */ |
||
17 | public $map = []; |
||
18 | |||
19 | /** @var string */ |
||
20 | public $field = 'type'; |
||
21 | |||
22 | public function __construct(array $values = [], string $field = 'type', array $map = []) |
||
27 |