store-manage/app/Enums/PromotionStatus.php

47 lines
881 B
PHP

<?php
namespace App\Enums;
/**
* 升职申请状态
*/
enum PromotionStatus: int
{
/**
* 待提交, 需要升职员工填写相关资料
*/
case Employee = 1;
/**
* 待推荐, 等待推荐人填写理由
*/
case Invitor = 2;
/**
* 审核中, 等待后台审核
*/
case Processing = 3;
/**
* 审核通过
*/
case Success = 4;
/**
* 审核不通过
*/
case Fail = 5;
public static function options()
{
return [
self::Employee->value => '待补充',
self::Invitor->value => '待推荐',
self::Processing->value => '审核中',
self::Success->value => '已通过',
self::Fail->value => '未通过',
];
}
public function text()
{
return data_get(self::options(), $this->value);
}
}