DailyService::getAliasAttribute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace FaithGen\SDK\Models\Ministry;
4
5
use FaithGen\SDK\Models\UuidModel;
6
use FaithGen\SDK\Traits\Relationships\Belongs\BelongsToMinistryTrait;
7
8
class DailyService extends UuidModel
9
{
10
    use BelongsToMinistryTrait;
11
12
    protected $table = 'fg_daily_services';
13
    protected $hidden = [
14
        'created_at',
15
        'updated_at',
16
        'ministry_id',
17
        'id',
18
    ];
19
20
    public function getAliasAttribute($val)
21
    {
22
        return ucwords($val);
23
    }
24
}
25