Completed
Push — master ( f3d932...88ba9b )
by Dmitry
03:14
created

SearchCommand::getQueryOptions()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 7
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 0
crap 6
1
<?php
2
3
namespace hiapi\commands;
4
5
class SearchCommand extends BaseCommand
6
{
7
    public $select;
8
    public $where;
9
    public $limit;
10
11
    public function rules()
12
    {
13
        return [
14
            ['select', 'safe'],
15
            ['where', 'safe'],
16
            ['limit', 'number', 'max' => 100],
17
        ];
18
    }
19
}
20