| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 38 | public function normalizeField( |
||
| 39 | string $path, |
||
| 40 | $object, |
||
| 41 | NormalizerContextInterface $context, |
||
| 42 | NormalizerInterface $normalizer = null |
||
| 43 | ) { |
||
| 44 | if (null === $relatedObject = $this->accessor->getValue($object)) { |
||
| 45 | 2 | return null; |
|
| 46 | } |
||
| 47 | |||
| 48 | return $this->identifierAccessor->getValue($relatedObject); |
||
| 49 | } |
||
| 51 |