Completed
Push — master ( 1961b2...5981e3 )
by Andrii
04:35
created

PingCommand   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 13
ccs 0
cts 1
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A rules() 0 8 1
1
<?php
2
3
namespace hiqdev\billing\hiapi\commands\order;
4
5
class PingCommand extends \hiapi\commands\Command
6
{
7
    protected $handlerClass = PingHandler::class;
8
9
    public function rules()
10
    {
11
        return [
12
            ['name', 'string'],
13
            ['message', 'string'],
14
            [['name', 'message'], 'required'],
15
        ];
16
    }
17
}
18