ReviewStatus::getTranslationAttribute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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