Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
20 | public function send($msg, $to, $from, $callback = null) |
||
21 | { |
||
22 | if (!empty($callback)) { |
||
23 | throw new \Exception("Callback URLs are not implemented for Plivo", 1); |
||
24 | } |
||
25 | |||
26 | $params = [ |
||
27 | 'src' => $from, |
||
28 | 'dst' => $to, |
||
29 | 'text' => $msg, |
||
30 | 'type' => 'sms' |
||
31 | ]; |
||
32 | |||
33 | return new PlivoResponse($this->handle->send_message($params)); |
||
34 | } |
||
35 | |||
59 |