Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class SslPlus extends BaseProvider |
||
8 | { |
||
9 | public function getUsername() |
||
12 | } |
||
13 | |||
14 | public function mapParams($recipient, $message, array $params = []) |
||
15 | { |
||
16 | if (!preg_match($this->recipientPattern, $recipient, $matches)) { |
||
17 | return []; |
||
18 | } |
||
19 | |||
20 | $recipient = '880'.$matches[3]; |
||
21 | |||
22 | return [ |
||
23 | 'csms_id' => isset($params['csms_id']) ? $params['csms_id'] : rand(100000, 999999), |
||
24 | 'msisdn' => $recipient, |
||
25 | 'sms' => $message, |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | public function getValidationRules() |
||
37 | ]; |
||
38 | } |
||
39 | |||
40 | public function parseResponse($response) |
||
47 |