make app database

This commit is contained in:
Meghdad committed 2026-07-22 15:46:41 +03:30
1 parent 78d276dd5d
commit 56a52be180
24 files changed
+1046 -7

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Domain\Loan\Enums;
enum LoanStatus: string
{
case Submitted = 'SUBMITTED';
case InProgress = 'IN_PROGRESS';
case ManualReview = 'MANUAL_REVIEW';
case Approved = 'APPROVED';
case Rejected = 'REJECTED';
public function isTerminal(): bool
{
return match ($this) {
self::ManualReview, self::Approved, self::Rejected => true,
self::Submitted, self::InProgress => false,
};
}
}