| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | final class DefaultEventSerializer implements EventSerializer |
||
| 22 | { |
||
| 23 | /** @var SymfonyMessageSerializer */ |
||
| 24 | private $serializer; |
||
| 25 | |||
| 26 | 15 | public function __construct(SymfonyMessageSerializer $serializer) |
|
| 29 | 15 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 7 | public function serialize(object $event): string |
|
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | 5 | public function unserialize(string $eventClass, string $payload): object |
|
| 61 |