| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function normalize($object, $format = null, array $context = []) : array |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | 'order' => $object->order(), |
||
| 27 | 'name' => $object->name(), |
||
| 28 | 'type' => get_class($object->event()), |
||
| 29 | 'occurred_on' => $object->occurredOn()->getTimestamp(), |
||
| 30 | 'payload' => [ |
||
| 31 | 'user_id' => $object->event()->userId()->id(), |
||
| 32 | ], |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | |||
| 41 |