Total Complexity | 1 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class PropertyResource extends \roaresearch\yii2\roa\controllers\Resource |
||
14 | { |
||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | public $idAttribute = 'property'; |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | public $modelClass = FieldRuleProperty::class; |
||
24 | |||
25 | /** |
||
26 | * @inheritdoc |
||
27 | */ |
||
28 | public $searchClass = FieldRulePropertySearch::class; |
||
29 | |||
30 | /** |
||
31 | * @inheritdoc |
||
32 | */ |
||
33 | public $filterParams = ['field_id', 'rule_id']; |
||
34 | |||
35 | /** |
||
36 | * @inheritdoc |
||
37 | */ |
||
38 | 3 | public function baseQuery(): ActiveQuery |
|
43 |