| Total Complexity | 5 | 
| Total Lines | 41 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 7 | class Grameenphone 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 = '0'.$matches[3];  | 
            ||
| 21 | |||
| 22 | return [  | 
            ||
| 23 | 'msisdn' => $recipient,  | 
            ||
| 24 | 'message' => $message,  | 
            ||
| 25 | ];  | 
            ||
| 26 | }  | 
            ||
| 27 | |||
| 28 | public function getValidationRules()  | 
            ||
| 40 | ];  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | public function parseResponse($response)  | 
            ||
| 50 |