Command   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 5 1
1
<?php
2
3
namespace hiqdev\billing\hiapi\tools\CleanForTests;
4
5
use hiapi\commands\BaseCommand;
6
use hiapi\validators\IdValidator;
7
use hiapi\validators\UsernameValidator;
8
9
class Command extends BaseCommand
10
{
11
    public $customer_id;
12
13
    public function rules(): array
14
    {
15
        return [
16
            [['customer'], UsernameValidator::class],
17
            [['customer_id'], IdValidator::class],
18
        ];
19
    }
20
}
21