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