phpvms/app/Models/Enums/UserState.php

23 lines
536 B
PHP
Raw Normal View History

2017-12-31 10:40:32 +08:00
<?php
namespace App\Models\Enums;
use App\Contracts\Enum;
2018-03-19 10:24:41 +08:00
class UserState extends Enum
2017-12-31 10:40:32 +08:00
{
2018-08-27 00:40:04 +08:00
public const PENDING = 0;
public const ACTIVE = 1;
public const REJECTED = 2;
public const ON_LEAVE = 3;
public const SUSPENDED = 4;
2017-12-31 10:40:32 +08:00
protected static $labels = [
2018-08-27 00:40:04 +08:00
self::PENDING => 'user.state.pending',
self::ACTIVE => 'user.state.active',
self::REJECTED => 'user.state.rejected',
self::ON_LEAVE => 'user.state.on_leave',
self::SUSPENDED => 'user.state.suspended',
2017-12-31 10:40:32 +08:00
];
}