ReviewStatus   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTranslationAttribute() 0 3 1
1
<?php
2
3
namespace App\Models\Lookup;
4
5
use App\Models\BaseModel;
6
use Illuminate\Support\Facades\Lang;
7
8
/**
9
 * Class ReviewStatus
10
 *
11
 * @property int $id
12
 * @property string $name
13
 * @property \Jenssegers\Date\Date $created_at
14
 * @property \Jenssegers\Date\Date $updated_at
15
 *
16
 * Acessors:
17
 * @property string $translation
18
 */
19
class ReviewStatus extends BaseModel
20
{
21
22
    protected $fillable = [];
23
24
    public function getTranslationAttribute()
25
    {
26
        return Lang::get('common/lookup/review_status')[$this->name];
27
    }
28
}
29