| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 1 | public static function createFromResponseArray(array $response) |
|
| 42 | { |
||
| 43 | 1 | return new self( |
|
| 44 | 1 | $response['id'], |
|
| 45 | 1 | $response['from'], |
|
| 46 | 1 | $response['number_to'], |
|
| 47 | 1 | $response['status'], |
|
| 48 | 1 | $response['sms_count'], |
|
| 49 | 1 | $response['sms_content'], |
|
| 50 | 1 | ($response['price'] / 100) |
|
| 51 | 1 | ); |
|
| 52 | } |
||
| 53 | |||
| 110 |