| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function normalize($object, $format = null, array $context = []) : array |
||
| 32 | { |
||
| 33 | return [ |
||
| 34 | 'order' => $object->order(), |
||
| 35 | 'name' => $object->name(), |
||
| 36 | 'type' => $this->nameConverter->normalize(get_class($object->event())), |
||
| 37 | 'occurred_on' => $object->occurredOn()->getTimestamp(), |
||
| 38 | 'payload' => [ |
||
| 39 | 'user_id' => $object->event()->userId()->id(), |
||
| 40 | ], |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 49 |