| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | 7 | public function unserialize($serialized) |
|
| 62 | { |
||
| 63 | 7 | $unserialize = unserialize($serialized); |
|
| 64 | |||
| 65 | 7 | $reflection = new ReflectionClass($unserialize['value']['class']); |
|
| 66 | |||
| 67 | 7 | $this->set( |
|
| 68 | 7 | ($reflection->newInstanceArgs([$unserialize['value']['message'], $unserialize['value']['code']])) |
|
| 69 | ); |
||
| 72 |