mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Move constants to dedicated enum
This commit is contained in:
parent
1d90748e4d
commit
342e9a263a
@ -58,28 +58,12 @@ class TransactionType extends Model
|
||||
{
|
||||
use SoftDeletes;
|
||||
|
||||
/** @var string */
|
||||
public const DEPOSIT = 'Deposit';
|
||||
/** @var string */
|
||||
public const INVALID = 'Invalid';
|
||||
/** @var string */
|
||||
public const LIABILITY_CREDIT = 'Liability credit';
|
||||
/** @var string */
|
||||
public const OPENING_BALANCE = 'Opening balance';
|
||||
/** @var string */
|
||||
public const RECONCILIATION = 'Reconciliation';
|
||||
/** @var string */
|
||||
public const TRANSFER = 'Transfer';
|
||||
/** @var string */
|
||||
public const WITHDRAWAL = 'Withdrawal';
|
||||
/** @var string[] */
|
||||
protected $casts
|
||||
= [
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime',
|
||||
];
|
||||
/** @var string[] */
|
||||
protected $fillable = ['type'];
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user