2018-02-24 06:37:10 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models\Enums;
|
|
|
|
|
2018-03-19 10:24:41 +08:00
|
|
|
use App\Interfaces\Enum;
|
|
|
|
|
2018-02-24 06:37:10 +08:00
|
|
|
/**
|
|
|
|
* Class AircraftState
|
|
|
|
* @package App\Models\Enums
|
|
|
|
*/
|
2018-03-08 22:51:36 +08:00
|
|
|
class AircraftStatus extends Enum
|
2018-02-24 06:37:10 +08:00
|
|
|
{
|
2018-03-20 09:50:40 +08:00
|
|
|
public const STORED = 0;
|
|
|
|
public const ACTIVE = 1;
|
|
|
|
public const RETIRED = 2;
|
|
|
|
public const SCRAPPED = 3;
|
2018-02-24 06:37:10 +08:00
|
|
|
public const WRITTEN_OFF = 4;
|
|
|
|
|
|
|
|
public static $labels = [
|
2018-03-20 09:50:40 +08:00
|
|
|
AircraftStatus::STORED => 'Stored',
|
|
|
|
AircraftStatus::ACTIVE => 'Active',
|
|
|
|
AircraftStatus::RETIRED => 'Retired',
|
|
|
|
AircraftStatus::SCRAPPED => 'Scrapped',
|
2018-02-24 06:37:10 +08:00
|
|
|
AircraftStatus::WRITTEN_OFF => 'Written Off',
|
|
|
|
];
|
2018-03-23 08:59:35 +08:00
|
|
|
|
|
|
|
public static $codes = [
|
|
|
|
'S' => AircraftStatus::STORED,
|
|
|
|
'A' => AircraftStatus::ACTIVE,
|
|
|
|
'R' => AircraftStatus::RETIRED,
|
|
|
|
'C' => AircraftStatus::SCRAPPED,
|
|
|
|
'W' => AircraftStatus::WRITTEN_OFF,
|
|
|
|
];
|
2018-02-24 06:37:10 +08:00
|
|
|
}
|