Conditions | 4 |
Paths | 8 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.7691 |
Changes | 0 |
1 | <?php |
||
9 | 3 | public function applyResponse($response) |
|
10 | { |
||
11 | 3 | if (isset($response->error_message)) { |
|
12 | $this->error = $response->error_message; |
||
13 | } |
||
14 | 3 | if (isset($response->sid)) { |
|
15 | $this->uuid = $response->sid; |
||
16 | } |
||
17 | 3 | if (!empty($response->available_phone_numbers)) { |
|
18 | 3 | $this->number = $response->available_phone_numbers[0]->phone_number; |
|
19 | 3 | } |
|
20 | 3 | } |
|
21 | |||
27 |