Skip to content

Firefly III: a personal finances manager

Move constants to dedicated enum

James Cole342e9a263aad
diff --git a/app/Models/TransactionType.php b/app/Models/TransactionType.php
index 6a6a68b759..b013e1f794 100644
--- a/app/Models/TransactionType.php
+++ b/app/Models/TransactionType.php
@@ -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'];
/**