generated from liutk/owl-admin-base
25 lines
422 B
PHP
25 lines
422 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum SignStatus: int
|
|
{
|
|
case Normal = 1;
|
|
case Absent = 2;
|
|
case Lose = 3;
|
|
|
|
public static function options()
|
|
{
|
|
return [
|
|
self::Normal->value => '正常',
|
|
self::Absent->value => '旷工',
|
|
self::Lose->value => '缺卡',
|
|
];
|
|
}
|
|
|
|
public function text()
|
|
{
|
|
return data_get(self::options(), $this->value);
|
|
}
|
|
}
|