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

PingCommand::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 0
cp 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 2
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