Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
45 | public function normalizeField( |
||
46 | string $path, |
||
47 | $object, |
||
48 | NormalizerContextInterface $context, |
||
49 | NormalizerInterface $normalizer = null |
||
50 | ) { |
||
51 | if (null === $childObject = $this->accessor->getValue($object)) { |
||
52 | return null; |
||
53 | } |
||
54 | |||
55 | return $this->childAccessor->getValue($childObject); |
||
56 | } |
||
57 | } |
||
58 |