| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | #[\Override] |
||
| 38 | public function send(string $identifier, string $message) { |
||
| 39 | try { |
||
| 40 | $response = $this->client->get( |
||
|
|
|||
| 41 | 'https://api.clockworksms.com/http/send.aspx', |
||
| 42 | [ |
||
| 43 | 'query' => [ |
||
| 44 | 'key' => $this->getApiToken(), |
||
| 45 | 'to' => $identifier, |
||
| 46 | 'content' => $message, |
||
| 47 | ], |
||
| 48 | ] |
||
| 49 | ); |
||
| 50 | } catch (Exception $ex) { |
||
| 51 | throw new MessageTransmissionException(); |
||
| 52 | } |
||
| 55 |