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