Conditions | 3 |
Paths | 4 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
28 | 2 | public static function createFromResponse(array $response) |
|
29 | { |
||
30 | 2 | $faultString = isset($response['faultString']) ? $response['faultString'] : 'Unknown'; |
|
31 | 2 | $faultCode = isset($response['faultCode']) ? $response['faultCode'] : 0; |
|
32 | |||
33 | 2 | return new self($faultString, $faultCode); |
|
34 | } |
||
35 | } |
||
36 |