phpvms/app/Models/Enums/AircraftStatus.php

35 lines
861 B
PHP
Raw Normal View History

<?php
namespace App\Models\Enums;
2018-03-19 10:24:41 +08:00
use App\Interfaces\Enum;
/**
* Class AircraftState
* @package App\Models\Enums
*/
class AircraftStatus extends Enum
{
public const STORED = 0;
public const ACTIVE = 1;
public const RETIRED = 2;
public const SCRAPPED = 3;
public const WRITTEN_OFF = 4;
public static $labels = [
AircraftStatus::STORED => 'Stored',
AircraftStatus::ACTIVE => 'Active',
AircraftStatus::RETIRED => 'Retired',
AircraftStatus::SCRAPPED => 'Scrapped',
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,
];
}