2017-12-20 10:19:36 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Enums;
|
|
|
|
|
|
|
|
class PirepState extends EnumBase {
|
2017-12-21 03:27:57 +08:00
|
|
|
|
2018-02-11 04:06:25 +08:00
|
|
|
public const REJECTED = -1;
|
2018-02-20 00:35:49 +08:00
|
|
|
public const IN_PROGRESS = 0; // flight is ongoing
|
|
|
|
public const PENDING = 1; // waiting admin approval
|
2018-02-11 04:06:25 +08:00
|
|
|
public const ACCEPTED = 2;
|
|
|
|
public const CANCELLED = 3;
|
|
|
|
public const DELETED = 4;
|
2017-12-20 10:19:36 +08:00
|
|
|
|
|
|
|
protected static $labels = [
|
2018-01-04 00:30:12 +08:00
|
|
|
PirepState::REJECTED => 'system.pireps.state.rejected',
|
|
|
|
PirepState::IN_PROGRESS => 'system.pireps.state.in_progress',
|
|
|
|
PirepState::PENDING => 'system.pireps.state.pending',
|
|
|
|
PirepState::ACCEPTED => 'system.pireps.state.accepted',
|
|
|
|
PirepState::CANCELLED => 'system.pireps.state.cancelled',
|
|
|
|
PirepState::DELETED => 'system.pireps.state.deleted',
|
2017-12-20 10:19:36 +08:00
|
|
|
];
|
|
|
|
}
|