File: /mnt/data/ghayatcom/ghayatcom-api/app/Enums/AppoitmentStatusEnum.php
<?php
namespace App\Enums;
use Spatie\Enum\Enum;
/**
* @method static self NEW()
* @method static self ACCEPTED()
* @method static self COMPLETED()
* @method static self CANCELLED()
* @method static self EXPIRED()
* @method static self REJECTED()
*/
final class AppoitmentStatusEnum extends Enum
{
/* const MAP_INDEX = [
'NEW' => 1,
'ACCEPTED' => 2,
'COMPLETED' => 3,
'CANCELLED' => 4,
'EXPIRED' => 5,
'REJECTED' => 6
];
const MAP_VALUE = [];*/
/*public static function requestEnum($req) {
if(gettype($req) == 'string') {
$explode = explode(",", $req);
$loop = array_filter($explode);
$returnData = [];
for ($i=0; $i < count($loop); $i++) {
array_push($returnData, self::REQUEST_ENUM[$loop[$i]]);
}
return $returnData;
} else {
return self::REQUEST_ENUM[$req];
}
}*/
}