| 1 | <?php |
||
| 9 | final class NormalizationFieldMapping implements NormalizationFieldMappingInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $name; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | private $groups; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var FieldNormalizerInterface |
||
| 23 | */ |
||
| 24 | private $fieldNormalizer; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param string $name |
||
| 28 | * @param array $groups |
||
| 29 | * @param FieldNormalizerInterface $fieldNormalizer |
||
| 30 | */ |
||
| 31 | public function __construct($name, array $groups = [], FieldNormalizerInterface $fieldNormalizer) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getName(): string |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function getGroups(): array |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return FieldNormalizerInterface |
||
| 56 | */ |
||
| 57 | public function getFieldNormalizer(): FieldNormalizerInterface |
||
| 61 | } |
||
| 62 |