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