Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class DateTimePlugin implements NormalizerProviderInterface, SchemaProviderInterface |
||
17 | { |
||
18 | /** |
||
19 | * @return NormalizerInterface[]|DenormalizerInterface[] |
||
20 | */ |
||
21 | public function getNormalizers(): array |
||
25 | ]; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return SchemaContract[] |
||
30 | */ |
||
31 | public function getDefinedStaticData(): array |
||
32 | { |
||
33 | AnnotationReader::addGlobalIgnoredName('alias'); |
||
34 | return [ |
||
35 | DateTimeInterface::class => SchemaFactory::createStringSchema('date-time'), |
||
36 | ]; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return callable[] |
||
41 | */ |
||
42 | public function getDynamicSchemaLogic(): array |
||
45 | } |
||
46 | } |
||
47 |