Test Failed
Pull Request — master (#1)
by Carlos
04:03
created

RuleResource   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 21
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A verbs() 0 6 1
1
<?php
2
3
namespace roaresearch\yii2\formgenerator\roa\resources\field;
4
5
use Yii;
6
use roaresearch\yii2\formgenerator\roa\models\FieldRule;
7
8
/**
9
 * CRUD resource for `FieldRule` records
10
 * @author Angel (Faryshta) Guevara <[email protected]>
11
 */
12
class RuleResource extends \roaresearch\yii2\roa\controllers\Resource
13
{
14
    /**
15
     * @inheritdoc
16
     */
17
    public $modelClass = FieldRule::class;
18
19
    /**
20
     * @inheritdoc
21
     */
22
    public $filterParams = ['field_id', 'rule_class', 'created_by'];
23
24
    /**
25
     * @inheritdoc
26
     */
27 5
    public function verbs()
28
    {
29 5
        $verbs = parent::verbs();
30 5
        unset($verbs['update']);
31
32 5
        return $verbs;
33
    }
34
}
35