Initial PHP rebuild of the app
This commit is contained in:
690 files changed
+33944
-12046
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum AppointmentStatus: string
|
||||
{
|
||||
case Pending = 'PENDING';
|
||||
case Confirmed = 'CONFIRMED';
|
||||
case CheckedIn = 'CHECKED_IN';
|
||||
case InProgress = 'IN_PROGRESS';
|
||||
case Completed = 'COMPLETED';
|
||||
case Cancelled = 'CANCELLED';
|
||||
case NoShow = 'NO_SHOW';
|
||||
|
||||
public function isTerminal(): bool
|
||||
{
|
||||
return in_array($this, [self::Completed, self::Cancelled, self::NoShow], true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user