| 1 | <?php |
||
| 12 | class ServiceApiCall |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var mixed |
||
| 16 | */ |
||
| 17 | private $client = null; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $code = 0; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $message = ''; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param array $config |
||
| 31 | */ |
||
| 32 | public function __construct(array $config = []) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | public function getCode() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return mixed |
||
| 53 | */ |
||
| 54 | public function getMessage() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param $status |
||
| 61 | * @return mixed |
||
| 62 | */ |
||
| 63 | public function last($status = '') |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @param $method |
||
| 79 | * @param $uri |
||
| 80 | * @param array $options |
||
| 81 | * @return mixed |
||
| 82 | */ |
||
| 83 | public function send($method, $uri = '', array $options = [], $returnData = false) |
||
| 105 | } |
||
| 106 |