Completed
Push — master ( 60539d...725f3a )
by Dmitry
07:23
created

DepositRequest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 52
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 9 1
1
<?php
2
3
namespace hiqdev\yii2\merchant\models;
4
5
use yii\base\Model;
6
7
class DepositRequest extends Model
8
{
9
    /**
10
     * @var string
11
     */
12
    public $id;
13
14
    /**
15
     * @var string
16
     */
17
    public $amount;
18
19
    /**
20
     * @var string
21
     */
22
    public $merchant;
23
24
    /**
25
     * @var string
26
     */
27
    public $username;
28
29
    /**
30
     * @var string
31
     */
32
    public $returnUrl;
33
34
    /**
35
     * @var string
36
     */
37
    public $notifyUrl;
38
39
    /**
40
     * @var string
41
     */
42
    public $cancelUrl;
43
44
    /**
45
     * @var string
46
     */
47
    public $finishUrl;
48
49
    public function rules()
50
    {
51
        return [
52
            [['id', 'merchant'], 'string'],
53
            [['amount'], 'number'],
54
            [['id', 'amount'], 'required'],
55
            [['merchant'], 'required'],
56
        ];
57
    }
58
}
59