Service   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A permissions() 0 3 1
A getByAction() 0 2 1
1
<?php namespace Distilleries\Expendable\Models;
2
3
class Service extends BaseModel {
4
5
    protected $fillable = ['id', 'action'];
6
7 2
    public function permissions()
8
    {
9 2
        return $this->hasMany('Distilleries\Expendable\Models\Permission');
10
    }
11
12 4
    public function getByAction($action) {
13 4
        return $this->where('action', '=', $action)->get();
14
    }
15
}