| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SerializeException implements Serializable |
||
| 15 | { |
||
| 16 | /** @var array */ |
||
| 17 | private array $data = []; |
||
| 18 | |||
| 19 | /** @var Throwable */ |
||
| 20 | private Throwable $exception; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * SerializeException constructor. |
||
| 24 | * |
||
| 25 | * @param Throwable $exception |
||
| 26 | */ |
||
| 27 | public function __construct(Throwable $exception) |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function serialize(): string |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return Throwable |
||
| 45 | */ |
||
| 46 | public function exception(): Throwable |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $serialized |
||
| 53 | * @return Throwable |
||
| 54 | */ |
||
| 55 | public function unserialize($serialized) |
||
| 68 |