Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Paystation extends BaseProvider |
||
8 | { |
||
9 | public function getUsername() |
||
10 | { |
||
11 | return $this->config['user_id']; |
||
12 | } |
||
13 | |||
14 | public function mapParams($recipient, $message, array $params = []) |
||
26 | ]; |
||
27 | } |
||
28 | |||
29 | public function getValidationRules() |
||
30 | { |
||
31 | return [ |
||
32 | 'user_id' => 'required', |
||
33 | 'password' => 'required', |
||
34 | 'type' => 'required', |
||
35 | 'number' => 'required|regex:/^01[3456789]\d{8}$/', |
||
36 | 'message' => 'required', |
||
37 | ]; |
||
38 | } |
||
39 | |||
40 | public function parseResponse($response) |
||
45 | } |
||
46 | } |
||
47 |