D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
plib
/
vendor
/
jms
/
serializer
/
src
/
Annotation
/
Filename :
Discriminator.php
back
Copy
<?php declare(strict_types=1); namespace JMS\Serializer\Annotation; /** * @Annotation * @Target("CLASS") */ #[\Attribute(\Attribute::TARGET_CLASS)] class Discriminator implements SerializerAttribute { use AnnotationUtilsTrait; /** @var array<string> */ public $map = []; /** @var string */ public $field = 'type'; /** @var bool */ public $disabled = false; /** @var string[] */ public $groups = []; public function __construct(array $values = [], string $field = 'type', array $groups = [], array $map = [], bool $disabled = false) { $this->loadAnnotationParameters(get_defined_vars()); } }