| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 1 | public static function fromUncleanUnSerialization( |
|
| 30 | ReflectionClass $reflectionClass, |
||
| 31 | string $errorString, |
||
| 32 | int $errorCode, |
||
| 33 | string $errorFile, |
||
| 34 | int $errorLine |
||
| 35 | ) : self { |
||
| 36 | 1 | return new self( |
|
| 37 | 1 | sprintf( |
|
| 38 | 'Could not produce an instance of "%s" via un-serialization, since an error was triggered ' |
||
| 39 | 1 | . 'in file "%s" at line "%d"', |
|
| 40 | 1 | $reflectionClass->getName(), |
|
| 41 | 1 | $errorFile, |
|
| 42 | 1 | $errorLine |
|
| 43 | ), |
||
| 44 | 1 | 0, |
|
| 45 | 1 | new Exception($errorString, $errorCode) |
|
| 46 | ); |
||
| 47 | } |
||
| 48 | } |
||
| 49 |