From 342e9a263aad0fe1a8ef1dd520df52a605cec6ba Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 13 Apr 2022 14:20:59 +0200 Subject: [PATCH] Move constants to dedicated enum --- app/Models/TransactionType.php | 16 ---------------- 1 file changed, 16 deletions(-) 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']; /**