Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function send(string $identifier, string $message) { |
||
35 | $config = $this->getConfig(); |
||
36 | $user = $config->getUser(); |
||
37 | $password = $config->getPassword(); |
||
38 | $host = $config->getHost(); |
||
39 | try { |
||
40 | $this->client->get('http://'.$host.'/SendSMS/username='.$user.'&password='.$password.'&phone='.$identifier.'&message='.$message); |
||
41 | } catch (Exception $ex) { |
||
42 | throw new SmsTransmissionException(); |
||
43 | } |
||
53 |