Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
29 | public function denormalizeField( |
||
30 | string $path, |
||
31 | $object, |
||
32 | $value, |
||
33 | DenormalizerInterface $denormalizer = null, |
||
34 | DenormalizerContextInterface $context = null |
||
35 | ) { |
||
36 | try { |
||
37 | $value = new \DateTime($value); |
||
38 | } catch (\Exception $exception) { |
||
|
|||
39 | } |
||
40 | |||
41 | $this->fieldDenormalizer->denormalizeField($path, $object, $value, $denormalizer, $context); |
||
42 | } |
||
43 | } |
||
44 |