| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 2 | public function normalize($object, $format = null, array $context = []): array |
|
| 24 | { |
||
| 25 | /* @var Comment $object */ |
||
| 26 | |||
| 27 | return [ |
||
| 28 | 2 | 'id' => $object->getId(), |
|
| 29 | 2 | 'createdAt' => $this->normalizer->normalize($object->getCreatedAt()), |
|
| 30 | 2 | 'updatedAt' => $this->normalizer->normalize($object->getCreatedAt()), |
|
| 31 | 2 | 'body' => $object->getBody(), |
|
| 32 | 2 | 'author' => $this->normalizer->normalize($object->getAuthor()), |
|
| 33 | ]; |
||
| 52 |