| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class FieldRulePropertySearch extends FieldRuleProperty implements |
||
| 14 | ResourceSearch |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @inhertidoc |
||
| 18 | */ |
||
| 19 | 1 | protected function slugBehaviorConfig(): array |
|
| 20 | { |
||
| 21 | return [ |
||
| 22 | 1 | 'idAttribute' => [], |
|
| 23 | 'resourceName' => 'property', |
||
| 24 | ]; |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @inhertidoc |
||
| 29 | */ |
||
| 30 | 1 | public function rules() |
|
| 31 | { |
||
| 32 | return [ |
||
| 33 | 1 | [['rule_id'], 'required'], |
|
| 34 | [['rule_id', 'created_by'], 'integer'], |
||
| 35 | ]; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inhertidoc |
||
| 40 | */ |
||
| 41 | 1 | public function search( |
|
| 59 | ]), |
||
| 60 | ]); |
||
| 61 | } |
||
| 63 |