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
|
|
|
|
2017-12-20 10:19:36 +08:00
|
|
|
/**
|
2018-04-02 09:18:12 +08:00
|
|
|
* Tied to the ACARS statuses/states.
|
2018-04-16 22:33:45 +08:00
|
|
|
* Corresponds to values from AIDX and ICAO ADREP
|
|
|
|
* https://www.skybrary.aero/index.php/Flight_Phase_Taxonomy
|
2017-12-20 10:19:36 +08:00
|
|
|
*/
|
2018-03-08 22:51:36 +08:00
|
|
|
class PirepStatus extends Enum
|
2017-12-20 10:19:36 +08:00
|
|
|
{
|
2018-08-27 00:40:04 +08:00
|
|
|
public const INITIATED = 'INI';
|
|
|
|
public const SCHEDULED = 'SCH';
|
|
|
|
public const BOARDING = 'BST';
|
|
|
|
public const RDY_START = 'RDT';
|
|
|
|
public const PUSHBACK_TOW = 'PBT';
|
|
|
|
public const DEPARTED = 'OFB'; // Off block
|
|
|
|
public const RDY_DEICE = 'DIR';
|
|
|
|
public const STRT_DEICE = 'DIC';
|
|
|
|
public const GRND_RTRN = 'GRT'; // Ground return
|
|
|
|
public const TAXI = 'TXI'; // Taxi
|
|
|
|
public const TAKEOFF = 'TOF';
|
|
|
|
public const INIT_CLIM = 'ICL';
|
|
|
|
public const AIRBORNE = 'TKO';
|
|
|
|
public const ENROUTE = 'ENR';
|
|
|
|
public const DIVERTED = 'DV';
|
|
|
|
public const APPROACH = 'TEN';
|
2018-04-16 22:33:45 +08:00
|
|
|
public const APPROACH_ICAO = 'APR';
|
2018-08-27 00:40:04 +08:00
|
|
|
public const ON_FINAL = 'FIN';
|
|
|
|
public const LANDING = 'LDG';
|
|
|
|
public const LANDED = 'LAN';
|
|
|
|
public const ARRIVED = 'ONB'; // On block
|
|
|
|
public const CANCELLED = 'DX';
|
2021-06-04 22:51:59 +08:00
|
|
|
public const EMERG_DESCENT = 'EMG';
|
2021-07-22 23:59:52 +08:00
|
|
|
public const PAUSED = 'PSD';
|
2017-12-20 10:19:36 +08:00
|
|
|
|
|
|
|
protected static $labels = [
|
2018-08-27 00:40:04 +08:00
|
|
|
self::INITIATED => 'pireps.status.initialized',
|
|
|
|
self::SCHEDULED => 'pireps.status.scheduled',
|
|
|
|
self::BOARDING => 'pireps.status.boarding',
|
|
|
|
self::RDY_START => 'pireps.status.ready_start',
|
|
|
|
self::PUSHBACK_TOW => 'pireps.status.push_tow',
|
|
|
|
self::DEPARTED => 'pireps.status.departed',
|
|
|
|
self::RDY_DEICE => 'pireps.status.ready_deice',
|
|
|
|
self::STRT_DEICE => 'pireps.status.deicing',
|
|
|
|
self::GRND_RTRN => 'pireps.status.ground_ret',
|
|
|
|
self::TAXI => 'pireps.status.taxi',
|
|
|
|
self::TAKEOFF => 'pireps.status.takeoff',
|
|
|
|
self::INIT_CLIM => 'pireps.status.initial_clb',
|
|
|
|
self::AIRBORNE => 'pireps.status.enroute',
|
|
|
|
self::ENROUTE => 'pireps.status.enroute',
|
|
|
|
self::DIVERTED => 'pireps.status.diverted',
|
|
|
|
self::APPROACH => 'pireps.status.approach',
|
|
|
|
self::APPROACH_ICAO => 'pireps.status.approach',
|
|
|
|
self::ON_FINAL => 'pireps.status.final_appr',
|
|
|
|
self::LANDING => 'pireps.status.landing',
|
|
|
|
self::LANDED => 'pireps.status.landed',
|
|
|
|
self::ARRIVED => 'pireps.status.arrived',
|
|
|
|
self::CANCELLED => 'pireps.status.cancelled',
|
2021-06-04 22:51:59 +08:00
|
|
|
self::EMERG_DESCENT => 'pireps.status.emerg_decent',
|
2021-07-22 23:59:52 +08:00
|
|
|
self::PAUSED => 'pireps.status.paused',
|
2017-12-20 10:19:36 +08:00
|
|
|
];
|
|
|
|
}
|