| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function getData() |
||
| 14 | { |
||
| 15 | $endpoint = $this->getEndpoint('b2b') . '/MyBillingPay/api/TradeQuery'; |
||
| 16 | $requestData = [ |
||
| 17 | 'AuthCode' => $this->getToken() |
||
| 18 | ]; |
||
| 19 | $response = $this->httpClient->post($endpoint, null, $requestData)->send(); |
||
| 20 | $data = json_decode($response->getBody(), true); |
||
| 21 | return $data; |
||
| 22 | } |
||
| 30 | } |