Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
35 | 6 | public function sendEvent(EventCollection $events) |
|
36 | { |
||
37 | 6 | $promise = $this->client->postAsync('events', [ |
|
38 | 6 | 'body' => json_encode($events), |
|
39 | 'headers' => [ |
||
40 | 3 | 'X-Insert-Key' => $this->key, |
|
41 | 3 | 'Content-Type' => 'application/json', |
|
42 | ] |
||
43 | ]); |
||
44 | |||
45 | 3 | return $promise; |
|
46 | } |
||
47 | } |
||
48 |