| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 26 | public function generateContext(): DeserializationContext |
||
| 27 | { |
||
| 28 | $namingStrategy = new SerializedNameAnnotationStrategy(new CamelCaseNamingStrategy()); |
||
| 29 | |||
| 30 | $context = DeserializationContext::create(); |
||
| 31 | $factory = new MetadataFactory(new AnnotationDriver(new AnnotationReader(), $namingStrategy)); |
||
| 32 | $context->initialize('json', new JsonSerializationVisitor(), new GraphNavigator\SerializationGraphNavigator($factory, new HandlerRegistry(), new DefaultAccessorStrategy()), $factory); |
||
| 33 | |||
| 34 | return $context; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |