RequestData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/vuongxuongminh/yii2-gateway-clients
4
 * @copyright Copyright (c) 2018 Vuong Xuong Minh
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
9
namespace vxm\examples\gatewayclients;
10
11
use vxm\gatewayclients\RequestData as BaseRequestData;
12
13
/**
14
 * Class RequestData
15
 *
16
 * @author Vuong Minh <[email protected]>
17
 * @since 1.0
18
 */
19
class RequestData extends BaseRequestData
20
{
21
22
    /**
23
     * @inheritdoc
24
     */
25
    public function rules()
26
    {
27
        return [
28
            [['amount'], 'required', 'on' => ['refund', 'charge']]
29
        ];
30
    }
31
32
}