20 lines
437 B
PHP
20 lines
437 B
PHP
<?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);
|
|
}
|
|
}
|