| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class Robi extends BaseProvider |
||
| 11 | { |
||
| 12 | public function getUsername() |
||
| 13 | { |
||
| 14 | return $this->config['Username']; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function mapParams($recipient, $message, array $params = []) |
||
| 18 | { |
||
| 19 | if (!preg_match($this->recipientPattern, $recipient, $matches)) { |
||
| 20 | return []; |
||
| 21 | } |
||
| 22 | |||
| 23 | $recipient = '880'.$matches[3]; |
||
| 24 | |||
| 25 | return [ |
||
| 26 | 'To' => $recipient, |
||
| 27 | 'Message' => $message, |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getValidationRules() |
||
| 39 | ]; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function parseResponse($response) |
||
| 52 | } |
||
| 53 | } |
||
| 55 |