Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function sendMessage(string $destination, string $content) |
||
52 | { |
||
53 | $data = [ |
||
54 | "sender" => $this->sender, |
||
55 | "destination" => $destination, |
||
56 | "content" => $content |
||
57 | ]; |
||
58 | |||
59 | $sms_message = new Message($data); |
||
60 | |||
61 | try { |
||
62 | $result = $this->apiInstance->sendMessage($sms_message); |
||
63 | } catch (\Exception | ApiException $e) { |
||
64 | throw $e; |
||
65 | } |
||
66 | |||
67 | return $result; |
||
68 | } |
||
69 | } |