@@ 10-33 (lines=24) @@ | ||
7 | /** |
|
8 | * Class ArithmeticErrorObject |
|
9 | */ |
|
10 | class ArithmeticErrorObject extends AbstractErrorObject |
|
11 | { |
|
12 | /** |
|
13 | * ArithmeticErrorObject constructor. |
|
14 | * |
|
15 | * @param \ArithmeticError $value |
|
16 | */ |
|
17 | public function __construct(\ArithmeticError $value) |
|
18 | { |
|
19 | parent::__construct($value); |
|
20 | } |
|
21 | ||
22 | /** |
|
23 | * {@inheritdoc} |
|
24 | */ |
|
25 | public function unserialize($serialized) |
|
26 | { |
|
27 | $unserialize = \unserialize($serialized); |
|
28 | ||
29 | $this->set( |
|
30 | (new \ArithmeticError($unserialize['value']['message'], $unserialize['value']['code'])) |
|
31 | ); |
|
32 | } |
|
33 | } |
|
34 |
@@ 10-33 (lines=24) @@ | ||
7 | /** |
|
8 | * Class AssertionErrorObject |
|
9 | */ |
|
10 | class AssertionErrorObject extends AbstractErrorObject |
|
11 | { |
|
12 | /** |
|
13 | * AssertionErrorObject constructor. |
|
14 | * |
|
15 | * @param \AssertionError $value |
|
16 | */ |
|
17 | public function __construct(\AssertionError $value) |
|
18 | { |
|
19 | parent::__construct($value); |
|
20 | } |
|
21 | ||
22 | /** |
|
23 | * {@inheritdoc} |
|
24 | */ |
|
25 | public function unserialize($serialized) |
|
26 | { |
|
27 | $unserialize = \unserialize($serialized); |
|
28 | ||
29 | $this->set( |
|
30 | (new \AssertionError($unserialize['value']['message'], $unserialize['value']['code'])) |
|
31 | ); |
|
32 | } |
|
33 | } |
|
34 |