| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class Sms extends AbstractRequest |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Sms constructor. |
||
| 19 | * @param string $recNum 接收方手机号 |
||
| 20 | * @param string $smsTemplateCode 模板ID |
||
| 21 | * @param string $smsFreeSignName 签名 |
||
| 22 | * @param array $smsParam 模板变量 |
||
| 23 | * @param string $extend 回传参数 |
||
| 24 | */ |
||
| 25 | public function __construct($recNum, $smsTemplateCode, $smsFreeSignName, array $smsParam = [], $extend = '') |
||
| 26 | { |
||
| 27 | $this->setParams([ |
||
| 28 | 'sms_type' => 'normal', |
||
| 29 | 'rec_num' => $recNum, |
||
| 30 | 'sms_template_code' => $smsTemplateCode, |
||
| 31 | 'sms_free_sign_name' => $smsFreeSignName, |
||
| 32 | 'sms_param' => $smsParam, |
||
| 33 | 'extend' => $extend |
||
| 34 | ]); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * 返回接口参数 |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function getParams() |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * 返回接口名 |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getMethod() |
||
| 59 | } |
||
| 60 | } |
||
| 62 |