| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class BankAccount extends Model |
||
| 11 | { |
||
| 12 | use InteractsWithUuid; |
||
|
|
|||
| 13 | |||
| 14 | protected $guarded = [ |
||
| 15 | 'id', |
||
| 16 | ]; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Bank. |
||
| 20 | */ |
||
| 21 | public function bank(): BelongsTo |
||
| 22 | { |
||
| 23 | return $this->belongsTo(Bank::class)->withDefault(); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get all of the owning bank models. |
||
| 28 | */ |
||
| 29 | public function bankable(): MorphTo |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get Bank Name via Accessor. |
||
| 36 | */ |
||
| 37 | public function getBankNameAttribute(): string |
||
| 42 |