| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 3 |
| 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 === $relatedObjects = $this->accessor->getValue($object)) { |
||
| 45 | 3 | return null; |
|
| 46 | } |
||
| 47 | |||
| 48 | $values = []; |
||
| 49 | foreach ($relatedObjects as $i => $relatedObject) { |
||
| 50 | $values[$i] = $this->identifierAccessor->getValue($relatedObject); |
||
| 51 | 3 | } |
|
| 52 | 1 | ||
| 53 | return $values; |
||
| 54 | } |
||
| 56 |