2017-12-31 10:40:32 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Enums;
|
|
|
|
|
2018-03-19 10:24:41 +08:00
|
|
|
use App\Interfaces\Enum;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class UserState
|
|
|
|
* @package App\Models\Enums
|
|
|
|
*/
|
2018-03-08 22:51:36 +08:00
|
|
|
class UserState extends Enum
|
2017-12-31 10:40:32 +08:00
|
|
|
{
|
2018-02-11 04:06:25 +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-07-16 04:06:25 +08:00
|
|
|
UserState::PENDING => 'user.state.pending',
|
|
|
|
UserState::ACTIVE => 'user.state.active',
|
|
|
|
UserState::REJECTED => 'user.state.rejected',
|
|
|
|
UserState::ON_LEAVE => 'user.state.on_leave',
|
|
|
|
UserState::SUSPENDED => 'user.state.suspended',
|
2017-12-31 10:40:32 +08:00
|
|
|
];
|
|
|
|
}
|