Conditions | 5 |
Paths | 12 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function __construct(array $response) |
||
32 | { |
||
33 | $this->status = $response['status']; |
||
34 | $this->errorId = isset($response['error_id']) ? $response['error_id'] : ''; |
||
35 | $this->errorMsg = isset($response['error_msg']) ? $response['error_msg'] : ''; |
||
36 | foreach ($response['result'] as $responseMessage) { |
||
37 | if (array_key_exists('status', $response)) { |
||
38 | $this->result[] = new SmsUpResponseMessage($responseMessage); |
||
39 | } |
||
74 | } |