Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
76 | public function triggerEvent($event = null) |
||
77 | { |
||
78 | |||
79 | if (is_null($event)) { |
||
80 | throw new InvalidEventException("Event name required"); |
||
81 | } |
||
82 | |||
83 | $response = $this->client->post($this->endpoint, [ |
||
84 | 'headers' => ['content-type' => 'application/json'], |
||
85 | 'body' => $this->loadEventData($event) |
||
86 | ]); |
||
87 | |||
88 | return $response; |
||
89 | } |
||
90 | |||
92 |