1 | <?php |
||
18 | trait SignatureValidatorTrait |
||
19 | { |
||
20 | /** |
||
21 | * Phương thức kiểm tra chữ ký dữ liệu có hợp lệ hay không từ MOMO gửi sang. |
||
22 | * |
||
23 | * @param string $attribute có giá trị là chữ ký cần kiểm tra. |
||
24 | * @param array $params thiết lập từ rule |
||
25 | * @param \yii\validators\InlineValidator $validator |
||
26 | * @throws \yii\base\InvalidConfigException|\yii\base\NotSupportedException|InvalidCallException |
||
27 | */ |
||
28 | 4 | public function signatureValidator($attribute, $params, \yii\validators\InlineValidator $validator) |
|
41 | |||
42 | /** |
||
43 | * Phương thức hồ trợ cung cấp các attributes dùng để xác minh tính hợp lệ của chữ ký dữ liệu phản hồi từ MOMO. |
||
44 | * |
||
45 | * @return array attributes dùng để xác minh tính hợp lệ. |
||
46 | */ |
||
47 | protected function getDataSignAttributes(): array |
||
51 | } |
||
52 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.