Completed
Push — master ( a1a3e4...b323d1 )
by Evgenii
37:40
created

User::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: floor12
5
 * Date: 29.07.2018
6
 * Time: 9:46
7
 */
8
9
namespace floor12\phone\tests;
10
11
12
use floor12\phone\PhoneValidator;
13
use yii\base\Model;
14
15
class User extends Model
16
{
17
18
    public $phone;
19
20
    public function rules()
21
    {
22
        return [
23
            ['phone', PhoneValidator::class]
24
        ];
25
    }
26
}