Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CustomerContactPhones extends Model |
||
8 | { |
||
9 | protected $fillable = ['cont_id', 'phone_type_id', 'phone_number', 'extension']; |
||
10 | protected $appends = ['type_icon', 'type_name', 'readable']; |
||
11 | protected $hidden = ['created_at', 'updated_at']; |
||
12 | |||
13 | 4 | public function getTypeIconAttribute() |
|
14 | { |
||
15 | 4 | return PhoneNumberTypes::find($this->phone_type_id)->icon_class; |
|
16 | } |
||
17 | |||
18 | 6 | public function getTypeNameAttribute() |
|
21 | } |
||
22 | |||
23 | 6 | public function getReadableAttribute() |
|
26 | } |
||
27 | } |
||
28 |