1 | <?php |
||
23 | class AliyunrestGateway extends Gateway |
||
24 | { |
||
25 | use HasHttpRequest; |
||
26 | |||
27 | const ENDPOINT_URL = 'http://gw.api.taobao.com/router/rest'; |
||
28 | |||
29 | const ENDPOINT_VERSION = '2.0'; |
||
30 | |||
31 | const ENDPOINT_FORMAT = 'json'; |
||
32 | |||
33 | const ENDPOINT_METHOD = 'alibaba.aliqin.fc.sms.num.send'; |
||
34 | |||
35 | const ENDPOINT_SIGNATURE_METHOD = 'md5'; |
||
36 | |||
37 | const ENDPOINT_PARTNER_ID = 'EasySms'; |
||
38 | |||
39 | /** |
||
40 | * @param PhoneNumberInterface $to |
||
41 | * @param MessageInterface $message |
||
42 | * @param Config $config |
||
43 | * |
||
44 | * @return array|void |
||
|
|||
45 | */ |
||
46 | 1 | public function send(PhoneNumberInterface $to, MessageInterface $message, Config $config) |
|
76 | |||
77 | /** |
||
78 | * @param array $params |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | 1 | protected function getEndpointUrl($params) |
|
86 | |||
87 | /** |
||
88 | * @param array $params |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | 1 | protected function generateSign($params) |
|
107 | } |
||
108 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.