phpvms/app/Models/Enums/UserState.php

27 lines
665 B
PHP
Raw Normal View History

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
*/
class UserState extends Enum
2017-12-31 10:40:32 +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-04-02 10:44:04 +08:00
UserState::PENDING => 'system.users.state.pending',
UserState::ACTIVE => 'system.users.state.active',
UserState::REJECTED => 'system.users.state.rejected',
UserState::ON_LEAVE => 'system.users.state.on_leave',
UserState::SUSPENDED => 'system.users.state.suspended',
2017-12-31 10:40:32 +08:00
];
}