Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | class FieldSearch extends Field implements ResourceSearch |
||
13 | { |
||
14 | /** |
||
15 | * @inhertidoc |
||
16 | */ |
||
17 | 1 | protected function slugBehaviorConfig(): array |
|
18 | { |
||
19 | return [ |
||
20 | 1 | 'idAttribute' => [], |
|
21 | 'resourceName' => 'field', |
||
22 | ]; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @inhertidoc |
||
27 | */ |
||
28 | 1 | public function rules() |
|
29 | { |
||
30 | return [ |
||
31 | 1 | [['data_type_id', 'created_by'], 'integer'], |
|
32 | [['name', 'label'], 'string'], |
||
33 | ]; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @inhertidoc |
||
38 | */ |
||
39 | 1 | public function search( |
|
57 | ]); |
||
58 | } |
||
59 | } |
||
60 |