phpvms/app/Models/Enums/UserState.php

24 lines
534 B
PHP
Raw Normal View History

2017-12-31 10:40:32 +08:00
<?php
/**
* Hold the user states
*/
namespace App\Models\Enums;
class UserState extends EnumBase
{
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 = [
UserState::PENDING => 'Pending',
UserState::ACTIVE => 'Active',
UserState::REJECTED => 'Rejected',
UserState::ON_LEAVE => 'On Leave',
UserState::SUSPENDED => 'Suspended',
];
}