| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | public function normalize($object, $format = null, array $context = []) |
||
| 32 | { |
||
| 33 | $indexValueNormalized = $object->getValue(); |
||
| 34 | |||
| 35 | $tags = $object->getTags(); |
||
| 36 | $tagsNormalized = []; |
||
| 37 | |||
| 38 | foreach ($tags as $tag) { |
||
| 39 | $tagName = $tag->getName(); |
||
| 40 | $tagDescription = $tag->getDescription(); |
||
| 41 | |||
| 42 | $tagsNormalized[] = ['name' => $tagName, 'description' => $tagDescription]; |
||
| 43 | } |
||
| 44 | |||
| 45 | return [ |
||
| 46 | 'value' => $indexValueNormalized, |
||
| 47 | 'tags' => $tagsNormalized, |
||
| 48 | ]; |
||
| 59 |