| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 8 | class Profile extends UuidModel |
||
| 9 | { |
||
| 10 | use BelongsToMinistryTrait; |
||
| 11 | |||
| 12 | protected $table = 'fg_profiles'; |
||
| 13 | |||
| 14 | protected $casts = [ |
||
| 15 | 'location' => 'array', |
||
| 16 | 'phones' => 'array', |
||
| 17 | 'emails' => 'array', |
||
| 18 | ]; |
||
| 19 | |||
| 20 | //****************************************************************************// |
||
| 21 | //***************************** MODEL ATTRIBUTES *****************************// |
||
| 22 | //****************************************************************************/// |
||
| 23 | |||
| 24 | public function getVisionAttribute($val) |
||
| 25 | { |
||
| 26 | return ucfirst($val); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getMissionAttribute($val) |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getLocationAttribute($location) |
||
| 55 |