| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class EventTypeHintCheckSerializer implements EventSerializer |
||
| 8 | { |
||
| 9 | private $serializer; |
||
| 10 | private $eventClassName; |
||
| 11 | |||
| 12 | 5 | public function __construct( |
|
| 13 | EventSerializer $serializer, |
||
| 14 | string $eventClassName |
||
| 15 | ) { |
||
| 16 | 5 | $this->serializer = $serializer; |
|
| 17 | 5 | $this->eventClassName = $eventClassName; |
|
| 18 | 5 | } |
|
| 19 | |||
| 20 | 2 | public function serializeEvent(object $event): array |
|
| 30 | } |
||
| 31 | |||
| 32 | 2 | public function unserializePayload(string $className, array $payload): object |
|
| 42 | } |
||
| 43 | } |
||
| 44 |