| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 1 | public static function fromSerializationTriggeredException( |
|
| 16 | ReflectionClass $reflectionClass, |
||
| 17 | Exception $exception |
||
| 18 | ) : self { |
||
| 19 | 1 | return new self( |
|
| 20 | 1 | sprintf( |
|
| 21 | 1 | 'An exception was raised while trying to instantiate an instance of "%s" via un-serialization', |
|
| 22 | 1 | $reflectionClass->getName() |
|
|
|
|||
| 23 | ), |
||
| 24 | 1 | 0, |
|
| 25 | 1 | $exception |
|
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 49 |