1 | <?php |
||
5 | class Response |
||
6 | { |
||
7 | private $status; |
||
8 | private $iso2; |
||
9 | private $iso3; |
||
10 | private $name; |
||
11 | |||
12 | public function __construct($response) |
||
16 | |||
17 | 4 | /** |
|
18 | * @param $response |
||
19 | 4 | * @return Response |
|
20 | 4 | * @throws \Exception |
|
21 | 3 | */ |
|
22 | 3 | private function parseResult($response) |
|
31 | |||
32 | 3 | /** |
|
33 | * @return int |
||
34 | 3 | */ |
|
35 | public function status() |
||
39 | |||
40 | 3 | /** |
|
41 | * @return string |
||
42 | 3 | */ |
|
43 | public function iso2() |
||
47 | |||
48 | 3 | /** |
|
49 | * @return string |
||
50 | 3 | */ |
|
51 | public function iso3() |
||
55 | |||
56 | 3 | /** |
|
57 | * @return string |
||
58 | 3 | */ |
|
59 | public function name() |
||
63 | } |
||
64 |