| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | public function fromSerialized(string $serialized): AggregateRoot |
||
| 36 | { |
||
| 37 | $aggregateRoot = \unserialize($serialized); |
||
| 38 | |||
| 39 | if (!$aggregateRoot instanceof AggregateRoot) { |
||
| 40 | throw new AggregateSerializationException('Invalid unserialized aggregate root'); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $aggregateRoot; |
||
| 44 | } |
||
| 46 |