Move account types to enum class.

This commit is contained in:
James Cole
2022-04-13 14:19:42 +02:00
parent b10c1044bd
commit 641683d431
2 changed files with 44 additions and 28 deletions

View File

@@ -49,34 +49,6 @@ use Illuminate\Support\Carbon;
*/
class AccountType extends Model
{
/** @var string */
public const ASSET = 'Asset account';
/** @var string */
public const BENEFICIARY = 'Beneficiary account';
/** @var string */
public const CASH = 'Cash account';
/** @var string */
public const CREDITCARD = 'Credit card';
/** @var string */
public const DEBT = 'Debt';
/** @var string */
public const DEFAULT = 'Default account';
/** @var string */
public const EXPENSE = 'Expense account';
/** @var string */
public const IMPORT = 'Import account';
/** @var string */
public const INITIAL_BALANCE = 'Initial balance account';
/** @var string */
public const LIABILITY_CREDIT = 'Liability credit account';
/** @var string */
public const LOAN = 'Loan';
/** @var string */
public const MORTGAGE = 'Mortgage';
/** @var string */
public const RECONCILIATION = 'Reconciliation account';
/** @var string */
public const REVENUE = 'Revenue account';
/**
* The attributes that should be casted to native types.
*