| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class UuidPlugin implements NormalizerProviderInterface, SchemaProviderInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * {@inheritDoc} |
||
| 16 | */ |
||
| 17 | public function getNormalizers(): array |
||
| 18 | { |
||
| 19 | return [ |
||
| 20 | new UuidNormalizer() |
||
| 21 | ]; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritDoc} |
||
| 26 | */ |
||
| 27 | public function getDefinedStaticData(): array |
||
| 28 | { |
||
| 29 | return [ |
||
| 30 | UuidInterface::class => SchemaFactory::createStringSchema('uuid') |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | */ |
||
| 37 | public function getDynamicSchemaLogic(): array |
||
| 40 | } |
||
| 41 | } |
||
| 42 |