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