Total Complexity | 3 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 40% |
Changes | 0 |
1 | <?php |
||
15 | class Wallet extends Model implements Customer, WalletFloat |
||
16 | { |
||
17 | |||
18 | use CanBePaidFloat; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $fillable = [ |
||
24 | 'holder_type', |
||
25 | 'holder_id', |
||
26 | 'name', |
||
27 | 'slug', |
||
28 | 'description', |
||
29 | 'balance', |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @var array |
||
34 | */ |
||
35 | protected $casts = [ |
||
36 | 'balance' => 'int', |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 21 | public function getTable(): string |
|
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function calculateBalance(): bool |
||
65 |