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

DepositRequest::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
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