2017-12-20 10:19:36 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Enums;
|
|
|
|
|
2019-07-16 03:44:31 +08:00
|
|
|
use App\Contracts\Enum;
|
2018-03-19 10:24:41 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class PirepState
|
|
|
|
*/
|
2018-03-20 09:50:40 +08:00
|
|
|
class PirepState extends Enum
|
|
|
|
{
|
|
|
|
public const IN_PROGRESS = 0; // flight is ongoing
|
2018-08-27 00:40:04 +08:00
|
|
|
public const PENDING = 1; // waiting admin approval
|
|
|
|
public const ACCEPTED = 2;
|
|
|
|
public const CANCELLED = 3;
|
|
|
|
public const DELETED = 4;
|
|
|
|
public const DRAFT = 5;
|
2019-09-17 01:08:26 +08:00
|
|
|
public const REJECTED = 6;
|
2017-12-20 10:19:36 +08:00
|
|
|
|
|
|
|
protected static $labels = [
|
2018-08-27 00:40:04 +08:00
|
|
|
self::IN_PROGRESS => 'pireps.state.in_progress',
|
|
|
|
self::PENDING => 'pireps.state.pending',
|
|
|
|
self::ACCEPTED => 'pireps.state.accepted',
|
|
|
|
self::CANCELLED => 'pireps.state.cancelled',
|
|
|
|
self::DELETED => 'pireps.state.deleted',
|
|
|
|
self::DRAFT => 'pireps.state.draft',
|
2019-09-17 01:08:26 +08:00
|
|
|
self::REJECTED => 'pireps.state.rejected',
|
2017-12-20 10:19:36 +08:00
|
|
|
];
|
|
|
|
}
|