1 | <?php |
||
12 | class ServiceApiCall |
||
13 | { |
||
14 | /** |
||
15 | * @var mixed |
||
16 | */ |
||
17 | private $client = null; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $code = ''; |
||
23 | |||
24 | /** |
||
25 | * @var mixed |
||
26 | */ |
||
27 | private $data = null; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $message = ''; |
||
33 | |||
34 | /** |
||
35 | * @param array $config |
||
36 | */ |
||
37 | public function __construct(array $config = []) |
||
41 | |||
42 | /** |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function getCode() |
||
49 | |||
50 | /** |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function getData() |
||
57 | |||
58 | /** |
||
59 | * @return mixed |
||
60 | */ |
||
61 | public function getMessage() |
||
65 | |||
66 | /** |
||
67 | * @param $status |
||
68 | * @return mixed |
||
69 | */ |
||
70 | public function last($status = '') |
||
85 | |||
86 | /** |
||
87 | * @param $method |
||
88 | * @param $uri |
||
89 | * @param array $options |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function send($method, $uri = '', array $options = []) |
||
109 | } |
||
110 |