| Total Complexity | 3 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | final class NativeAggregateSerializer implements AggregateSerializer |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function serialize(AggregateRoot $aggregateRoot): string |
||
| 28 | { |
||
| 29 | return \serialize($aggregateRoot); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | public function fromSerialized(string $serialized): AggregateRoot |
||
| 44 | } |
||
| 45 | } |
||
| 46 |