| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Coverage | 81.82% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | final class DefaultEventSerializer implements EventSerializer |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var SymfonyMessageSerializer |
||
| 25 | */ |
||
| 26 | private $serializer; |
||
| 27 | |||
| 28 | |||
| 29 | 9 | public function __construct() |
|
| 30 | { |
||
| 31 | 9 | $this->serializer = new SymfonyMessageSerializer(); |
|
| 32 | 9 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritDoc |
||
| 36 | */ |
||
| 37 | 7 | public function serialize(object $event): string |
|
| 46 | } |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritDoc |
||
| 51 | */ |
||
| 52 | 5 | public function unserialize(string $eventClass, string $payload): object |
|
| 64 |