| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class CustomerContactPhone extends Model |
||
| 9 | { |
||
| 10 | use HasFactory; |
||
| 11 | |||
| 12 | protected $guarded = ['id', 'updated_at', 'created_at']; |
||
| 13 | protected $hidden = ['created_at', 'updated_at', 'phone_type_id']; |
||
| 14 | protected $appends = ['formatted']; |
||
| 15 | |||
| 16 | public function PhoneNumberType() |
||
| 17 | { |
||
| 18 | return $this->hasOne(PhoneNumberType::class, 'phone_type_id', 'phone_type_id'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getFormattedAttribute() |
||
| 24 | } |
||
| 25 | } |
||
| 26 |