Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function sendData($data) |
||
11 | { |
||
12 | $url = $this->getEndpoint() . $this->getTransactionReference(); |
||
13 | |||
14 | $httpResponse = $this->httpClient->request('GET', $url, [ |
||
15 | 'Authorization' => 'Bearer ' . $this->getPassword(), |
||
16 | ]); |
||
17 | |||
18 | $this->response = new Response( |
||
19 | $this, |
||
20 | json_decode($httpResponse->getBody()->getContents(), true) |
||
21 | ); |
||
22 | |||
23 | return $this->response; |
||
24 | } |
||
26 |