mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 00:50:07 +00:00
Move constants to dedicated enum
This commit is contained in:
@@ -58,28 +58,12 @@ class TransactionType extends Model
|
|||||||
{
|
{
|
||||||
use SoftDeletes;
|
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
|
protected $casts
|
||||||
= [
|
= [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
];
|
];
|
||||||
/** @var string[] */
|
|
||||||
protected $fillable = ['type'];
|
protected $fillable = ['type'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user