Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
20f46adbc4
commit
9596d88b48
@@ -6,11 +6,10 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class AcarsType
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class AcarsType extends Enum
|
||||
{
|
||||
public const FLIGHT_PATH = 0;
|
||||
public const ROUTE = 1;
|
||||
public const LOG = 2;
|
||||
public const ROUTE = 1;
|
||||
public const LOG = 2;
|
||||
}
|
||||
|
||||
@@ -6,15 +6,14 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class ActiveState
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class ActiveState extends Enum
|
||||
{
|
||||
public const INACTIVE = 0;
|
||||
public const ACTIVE = 1;
|
||||
public const ACTIVE = 1;
|
||||
|
||||
public static $labels = [
|
||||
ActiveState::ACTIVE => 'common.active',
|
||||
ActiveState::INACTIVE => 'common.inactive',
|
||||
self::ACTIVE => 'common.active',
|
||||
self::INACTIVE => 'common.inactive',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class AircraftState
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class AircraftState extends Enum
|
||||
{
|
||||
@@ -15,8 +14,8 @@ class AircraftState extends Enum
|
||||
public const IN_AIR = 2;
|
||||
|
||||
public static $labels = [
|
||||
AircraftState::PARKED => 'On Ground',
|
||||
AircraftState::IN_USE => 'In Use',
|
||||
AircraftState::IN_AIR => 'In Air',
|
||||
self::PARKED => 'On Ground',
|
||||
self::IN_USE => 'In Use',
|
||||
self::IN_AIR => 'In Air',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,21 +6,20 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class AircraftState
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class AircraftStatus extends Enum
|
||||
{
|
||||
public const ACTIVE = 'A';
|
||||
public const STORED = 'S';
|
||||
public const RETIRED = 'R';
|
||||
public const SCRAPPED = 'C';
|
||||
public const ACTIVE = 'A';
|
||||
public const STORED = 'S';
|
||||
public const RETIRED = 'R';
|
||||
public const SCRAPPED = 'C';
|
||||
public const WRITTEN_OFF = 'W';
|
||||
|
||||
public static $labels = [
|
||||
AircraftStatus::ACTIVE => 'aircraft.status.active',
|
||||
AircraftStatus::STORED => 'aircraft.status.stored',
|
||||
AircraftStatus::RETIRED => 'aircraft.status.retired',
|
||||
AircraftStatus::SCRAPPED => 'aircraft.status.scrapped',
|
||||
AircraftStatus::WRITTEN_OFF => 'aircraft.status.written',
|
||||
self::ACTIVE => 'aircraft.status.active',
|
||||
self::STORED => 'aircraft.status.stored',
|
||||
self::RETIRED => 'aircraft.status.retired',
|
||||
self::SCRAPPED => 'aircraft.status.scrapped',
|
||||
self::WRITTEN_OFF => 'aircraft.status.written',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,11 +6,10 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class AnalyticsDimensions
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class AnalyticsDimensions extends Enum
|
||||
{
|
||||
public const PHP_VERSION = 1;
|
||||
public const PHP_VERSION = 1;
|
||||
public const DATABASE_VERSION = 2;
|
||||
public const PHPVMS_VERSION = 3;
|
||||
public const PHPVMS_VERSION = 3;
|
||||
}
|
||||
|
||||
@@ -7,10 +7,9 @@ use App\Interfaces\Enum;
|
||||
/**
|
||||
* Class AnalyticsMetrics
|
||||
* Metrics IDs used in Google Analytics
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class AnalyticsMetrics extends Enum
|
||||
{
|
||||
# Track the lookup time for airports from vaCentral
|
||||
// Track the lookup time for airports from vaCentral
|
||||
public const AIRPORT_LOOKUP_TIME = 1;
|
||||
}
|
||||
|
||||
@@ -7,60 +7,61 @@ use App\Interfaces\Enum;
|
||||
/**
|
||||
* Class Days
|
||||
* Start on Monday - ISO8601
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class Days extends Enum
|
||||
{
|
||||
public const MONDAY = 1 << 0;
|
||||
public const TUESDAY = 1 << 1;
|
||||
public const MONDAY = 1 << 0;
|
||||
public const TUESDAY = 1 << 1;
|
||||
public const WEDNESDAY = 1 << 2;
|
||||
public const THURSDAY = 1 << 3;
|
||||
public const FRIDAY = 1 << 4;
|
||||
public const SATURDAY = 1 << 5;
|
||||
public const SUNDAY = 1 << 6;
|
||||
public const THURSDAY = 1 << 3;
|
||||
public const FRIDAY = 1 << 4;
|
||||
public const SATURDAY = 1 << 5;
|
||||
public const SUNDAY = 1 << 6;
|
||||
|
||||
public static $labels = [
|
||||
Days::MONDAY => 'common.days.mon',
|
||||
Days::TUESDAY => 'common.days.tues',
|
||||
Days::WEDNESDAY => 'common.days.wed',
|
||||
Days::THURSDAY => 'common.days.thurs',
|
||||
Days::FRIDAY => 'common.days.fri',
|
||||
Days::SATURDAY => 'common.days.sat',
|
||||
Days::SUNDAY => 'common.days.sun',
|
||||
self::MONDAY => 'common.days.mon',
|
||||
self::TUESDAY => 'common.days.tues',
|
||||
self::WEDNESDAY => 'common.days.wed',
|
||||
self::THURSDAY => 'common.days.thurs',
|
||||
self::FRIDAY => 'common.days.fri',
|
||||
self::SATURDAY => 'common.days.sat',
|
||||
self::SUNDAY => 'common.days.sun',
|
||||
];
|
||||
|
||||
public static $codes = [
|
||||
'M' => Days::MONDAY,
|
||||
'T' => Days::TUESDAY,
|
||||
'W' => Days::WEDNESDAY,
|
||||
'Th' => Days::THURSDAY,
|
||||
'F' => Days::FRIDAY,
|
||||
'S' => Days::SATURDAY,
|
||||
'Su' => Days::SUNDAY,
|
||||
'M' => self::MONDAY,
|
||||
'T' => self::TUESDAY,
|
||||
'W' => self::WEDNESDAY,
|
||||
'Th' => self::THURSDAY,
|
||||
'F' => self::FRIDAY,
|
||||
'S' => self::SATURDAY,
|
||||
'Su' => self::SUNDAY,
|
||||
];
|
||||
|
||||
/**
|
||||
* Map the ISO8601 numeric today to day
|
||||
*/
|
||||
public static $isoDayMap = [
|
||||
1 => Days::MONDAY,
|
||||
2 => Days::TUESDAY,
|
||||
3 => Days::WEDNESDAY,
|
||||
4 => Days::THURSDAY,
|
||||
5 => Days::FRIDAY,
|
||||
6 => Days::SATURDAY,
|
||||
7 => Days::SUNDAY,
|
||||
1 => self::MONDAY,
|
||||
2 => self::TUESDAY,
|
||||
3 => self::WEDNESDAY,
|
||||
4 => self::THURSDAY,
|
||||
5 => self::FRIDAY,
|
||||
6 => self::SATURDAY,
|
||||
7 => self::SUNDAY,
|
||||
];
|
||||
|
||||
/**
|
||||
* Create the masked value for the days of week
|
||||
*
|
||||
* @param array $days
|
||||
*
|
||||
* @return int|mixed
|
||||
*/
|
||||
public static function getDaysMask(array $days)
|
||||
{
|
||||
$mask = 0;
|
||||
foreach($days as $day) {
|
||||
foreach ($days as $day) {
|
||||
$mask |= $day;
|
||||
}
|
||||
|
||||
@@ -69,8 +70,10 @@ class Days extends Enum
|
||||
|
||||
/**
|
||||
* See if the given mask has a day
|
||||
*
|
||||
* @param $mask
|
||||
* @param $day
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function in($mask, $day): bool
|
||||
@@ -80,7 +83,9 @@ class Days extends Enum
|
||||
|
||||
/**
|
||||
* Does the mask contain today?
|
||||
*
|
||||
* @param $val
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function isToday($val): bool
|
||||
|
||||
@@ -6,23 +6,22 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class ExpenseType
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class ExpenseType extends Enum
|
||||
{
|
||||
public const FLIGHT = 'F';
|
||||
public const DAILY = 'D';
|
||||
public const FLIGHT = 'F';
|
||||
public const DAILY = 'D';
|
||||
public const MONTHLY = 'M';
|
||||
|
||||
protected static $labels = [
|
||||
ExpenseType::FLIGHT => 'expenses.type.flight',
|
||||
ExpenseType::DAILY => 'expenses.type.daily',
|
||||
ExpenseType::MONTHLY => 'expenses.type.monthly',
|
||||
self::FLIGHT => 'expenses.type.flight',
|
||||
self::DAILY => 'expenses.type.daily',
|
||||
self::MONTHLY => 'expenses.type.monthly',
|
||||
];
|
||||
|
||||
protected static $codes = [
|
||||
ExpenseType::FLIGHT => 'F',
|
||||
ExpenseType::DAILY =>'D',
|
||||
ExpenseType::MONTHLY => 'M',
|
||||
self::FLIGHT => 'F',
|
||||
self::DAILY => 'D',
|
||||
self::MONTHLY => 'M',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,41 +6,40 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class FlightType
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class FlightType extends Enum
|
||||
{
|
||||
public const SCHED_PAX = 'J';
|
||||
public const SCHED_CARGO = 'F';
|
||||
public const CHARTER_PAX_ONLY = 'C';
|
||||
public const ADDITIONAL_CARGO = 'A';
|
||||
public const VIP = 'E';
|
||||
public const ADDTL_PAX = 'G';
|
||||
public const SCHED_PAX = 'J';
|
||||
public const SCHED_CARGO = 'F';
|
||||
public const CHARTER_PAX_ONLY = 'C';
|
||||
public const ADDITIONAL_CARGO = 'A';
|
||||
public const VIP = 'E';
|
||||
public const ADDTL_PAX = 'G';
|
||||
public const CHARTER_CARGO_MAIL = 'H';
|
||||
public const AMBULANCE = 'I';
|
||||
public const TRAINING = 'K';
|
||||
public const MAIL_SERVICE = 'M';
|
||||
public const CHARTER_SPECIAL = 'O';
|
||||
public const POSITIONING = 'P';
|
||||
public const TECHNICAL_TEST = 'T';
|
||||
public const MILITARY = 'W';
|
||||
public const TECHNICAL_STOP = 'X';
|
||||
public const AMBULANCE = 'I';
|
||||
public const TRAINING = 'K';
|
||||
public const MAIL_SERVICE = 'M';
|
||||
public const CHARTER_SPECIAL = 'O';
|
||||
public const POSITIONING = 'P';
|
||||
public const TECHNICAL_TEST = 'T';
|
||||
public const MILITARY = 'W';
|
||||
public const TECHNICAL_STOP = 'X';
|
||||
|
||||
protected static $labels = [
|
||||
FlightType::SCHED_PAX => 'flights.type.pass_scheduled',
|
||||
FlightType::SCHED_CARGO => 'flights.type.cargo_scheduled',
|
||||
FlightType::CHARTER_PAX_ONLY => 'flights.type.charter_pass_only',
|
||||
FlightType::ADDITIONAL_CARGO => 'flights.type.addtl_cargo_mail',
|
||||
FlightType::VIP => 'flights.type.special_vip',
|
||||
FlightType::ADDTL_PAX => 'flights.type.pass_addtl',
|
||||
FlightType::CHARTER_CARGO_MAIL => 'flights.type.charter_cargo',
|
||||
FlightType::AMBULANCE => 'flights.type.ambulance',
|
||||
FlightType::TRAINING => 'flights.type.training_flight',
|
||||
FlightType::MAIL_SERVICE => 'flights.type.mail_service',
|
||||
FlightType::CHARTER_SPECIAL => 'flights.type.charter_special',
|
||||
FlightType::POSITIONING => 'flights.type.positioning',
|
||||
FlightType::TECHNICAL_TEST => 'flights.type.technical_test',
|
||||
FlightType::MILITARY => 'flights.type.military',
|
||||
FlightType::TECHNICAL_STOP => 'flights.type.technical_stop',
|
||||
self::SCHED_PAX => 'flights.type.pass_scheduled',
|
||||
self::SCHED_CARGO => 'flights.type.cargo_scheduled',
|
||||
self::CHARTER_PAX_ONLY => 'flights.type.charter_pass_only',
|
||||
self::ADDITIONAL_CARGO => 'flights.type.addtl_cargo_mail',
|
||||
self::VIP => 'flights.type.special_vip',
|
||||
self::ADDTL_PAX => 'flights.type.pass_addtl',
|
||||
self::CHARTER_CARGO_MAIL => 'flights.type.charter_cargo',
|
||||
self::AMBULANCE => 'flights.type.ambulance',
|
||||
self::TRAINING => 'flights.type.training_flight',
|
||||
self::MAIL_SERVICE => 'flights.type.mail_service',
|
||||
self::CHARTER_SPECIAL => 'flights.type.charter_special',
|
||||
self::POSITIONING => 'flights.type.positioning',
|
||||
self::TECHNICAL_TEST => 'flights.type.technical_test',
|
||||
self::MILITARY => 'flights.type.military',
|
||||
self::TECHNICAL_STOP => 'flights.type.technical_stop',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,17 +6,16 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class FuelType
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class FuelType extends Enum
|
||||
{
|
||||
public const LOW_LEAD = 0;
|
||||
public const JET_A = 1;
|
||||
public const MOGAS = 2;
|
||||
public const JET_A = 1;
|
||||
public const MOGAS = 2;
|
||||
|
||||
public static $labels = [
|
||||
FuelType::LOW_LEAD => '100LL',
|
||||
FuelType::JET_A => 'JET A',
|
||||
FuelType::MOGAS => 'MOGAS',
|
||||
self::LOW_LEAD => '100LL',
|
||||
self::JET_A => 'JET A',
|
||||
self::MOGAS => 'MOGAS',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,10 +6,9 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class JournalType
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class JournalType extends Enum
|
||||
{
|
||||
public const AIRLINE = 0;
|
||||
public const USER = 1;
|
||||
public const USER = 1;
|
||||
}
|
||||
|
||||
@@ -8,49 +8,49 @@ use App\Interfaces\Enum;
|
||||
* Class NavaidType
|
||||
* Types based on/compatible with OpenFMC
|
||||
* https://github.com/skiselkov/openfmc/blob/master/airac.h
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class NavaidType extends Enum
|
||||
{
|
||||
public const VOR = 1 << 0;
|
||||
public const VOR_DME = 1 << 1;
|
||||
public const LOC = 1 << 4;
|
||||
public const LOC_DME = 1 << 5;
|
||||
public const NDB = 1 << 6;
|
||||
public const TACAN = 1 << 7;
|
||||
public const UNKNOWN = 1 << 8;
|
||||
public const VOR = 1 << 0;
|
||||
public const VOR_DME = 1 << 1;
|
||||
public const LOC = 1 << 4;
|
||||
public const LOC_DME = 1 << 5;
|
||||
public const NDB = 1 << 6;
|
||||
public const TACAN = 1 << 7;
|
||||
public const UNKNOWN = 1 << 8;
|
||||
public const INNER_MARKER = 1 << 9;
|
||||
public const OUTER_MARKER = 1 << 10;
|
||||
public const FIX = 1 << 11;
|
||||
public const ANY_VOR = NavaidType::VOR | NavaidType::VOR_DME;
|
||||
public const ANY_LOC = NavaidType::LOC | NavaidType::LOC_DME;
|
||||
public const ANY = (NavaidType::UNKNOWN << 1) - 1;
|
||||
public const FIX = 1 << 11;
|
||||
public const ANY_VOR = self::VOR | self::VOR_DME;
|
||||
public const ANY_LOC = self::LOC | self::LOC_DME;
|
||||
public const ANY = (self::UNKNOWN << 1) - 1;
|
||||
|
||||
/**
|
||||
* Names and titles
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
public static $labels = [
|
||||
NavaidType::VOR => 'VOR',
|
||||
NavaidType::VOR_DME => 'VOR DME',
|
||||
NavaidType::LOC => 'Localizer',
|
||||
NavaidType::LOC_DME => 'Localizer DME',
|
||||
NavaidType::NDB => 'Non-directional Beacon',
|
||||
NavaidType::TACAN => 'TACAN',
|
||||
NavaidType::UNKNOWN => 'Unknown',
|
||||
NavaidType::ANY_VOR => 'VOR',
|
||||
NavaidType::ANY_LOC => 'Localizer',
|
||||
self::VOR => 'VOR',
|
||||
self::VOR_DME => 'VOR DME',
|
||||
self::LOC => 'Localizer',
|
||||
self::LOC_DME => 'Localizer DME',
|
||||
self::NDB => 'Non-directional Beacon',
|
||||
self::TACAN => 'TACAN',
|
||||
self::UNKNOWN => 'Unknown',
|
||||
self::ANY_VOR => 'VOR',
|
||||
self::ANY_LOC => 'Localizer',
|
||||
];
|
||||
|
||||
public static $icons = [
|
||||
NavaidType::VOR => 'VOR',
|
||||
NavaidType::VOR_DME => 'VOR DME',
|
||||
NavaidType::LOC => 'Localizer',
|
||||
NavaidType::LOC_DME => 'Localizer DME',
|
||||
NavaidType::NDB => 'Non-directional Beacon',
|
||||
NavaidType::TACAN => 'TACAN',
|
||||
NavaidType::UNKNOWN => 'Unknown',
|
||||
NavaidType::ANY_VOR => 'VOR',
|
||||
NavaidType::ANY_LOC => 'Localizer',
|
||||
self::VOR => 'VOR',
|
||||
self::VOR_DME => 'VOR DME',
|
||||
self::LOC => 'Localizer',
|
||||
self::LOC_DME => 'Localizer DME',
|
||||
self::NDB => 'Non-directional Beacon',
|
||||
self::TACAN => 'TACAN',
|
||||
self::UNKNOWN => 'Unknown',
|
||||
self::ANY_VOR => 'VOR',
|
||||
self::ANY_LOC => 'Localizer',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,10 +6,9 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class AcarsType
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class PirepFieldSource extends Enum
|
||||
{
|
||||
public const MANUAL = 0;
|
||||
public const ACARS = 1;
|
||||
public const ACARS = 1;
|
||||
}
|
||||
|
||||
@@ -6,15 +6,14 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class PirepSource
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class PirepSource extends Enum
|
||||
{
|
||||
public const MANUAL = 0;
|
||||
public const ACARS = 1;
|
||||
public const ACARS = 1;
|
||||
|
||||
protected static $labels = [
|
||||
PirepSource::MANUAL => 'pireps.source_types.manual',
|
||||
PirepSource::ACARS => 'pireps.source_types.acars',
|
||||
self::MANUAL => 'pireps.source_types.manual',
|
||||
self::ACARS => 'pireps.source_types.acars',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,25 +6,24 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class PirepState
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class PirepState extends Enum
|
||||
{
|
||||
public const REJECTED = -1;
|
||||
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;
|
||||
public const DRAFT = 5;
|
||||
public const PENDING = 1; // waiting admin approval
|
||||
public const ACCEPTED = 2;
|
||||
public const CANCELLED = 3;
|
||||
public const DELETED = 4;
|
||||
public const DRAFT = 5;
|
||||
|
||||
protected static $labels = [
|
||||
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',
|
||||
self::REJECTED => 'pireps.state.rejected',
|
||||
self::IN_PROGRESS => 'pireps.state.in_progress',
|
||||
self::PENDING => 'pireps.state.pending',
|
||||
self::ACCEPTED => 'pireps.state.accepted',
|
||||
self::CANCELLED => 'pireps.state.cancelled',
|
||||
self::DELETED => 'pireps.state.deleted',
|
||||
self::DRAFT => 'pireps.state.draft',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -8,57 +8,56 @@ use App\Interfaces\Enum;
|
||||
* Tied to the ACARS statuses/states.
|
||||
* Corresponds to values from AIDX and ICAO ADREP
|
||||
* https://www.skybrary.aero/index.php/Flight_Phase_Taxonomy
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class PirepStatus extends Enum
|
||||
{
|
||||
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';
|
||||
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';
|
||||
public const APPROACH_ICAO = 'APR';
|
||||
public const ON_FINAL = 'FIN';
|
||||
public const LANDING = 'LDG';
|
||||
public const LANDED = 'LAN';
|
||||
public const ARRIVED = 'ONB'; // On block
|
||||
public const CANCELLED = 'DX';
|
||||
public const EMERG_DECENT = 'EMG';
|
||||
public const ON_FINAL = 'FIN';
|
||||
public const LANDING = 'LDG';
|
||||
public const LANDED = 'LAN';
|
||||
public const ARRIVED = 'ONB'; // On block
|
||||
public const CANCELLED = 'DX';
|
||||
public const EMERG_DECENT = 'EMG';
|
||||
|
||||
protected static $labels = [
|
||||
PirepStatus::INITIATED => 'pireps.status.initialized',
|
||||
PirepStatus::SCHEDULED => 'pireps.status.scheduled',
|
||||
PirepStatus::BOARDING => 'pireps.status.boarding',
|
||||
PirepStatus::RDY_START => 'pireps.status.ready_start',
|
||||
PirepStatus::PUSHBACK_TOW => 'pireps.status.push_tow',
|
||||
PirepStatus::DEPARTED => 'pireps.status.departed',
|
||||
PirepStatus::RDY_DEICE => 'pireps.status.ready_deice',
|
||||
PirepStatus::STRT_DEICE => 'pireps.status.deicing',
|
||||
PirepStatus::GRND_RTRN => 'pireps.status.ground_ret',
|
||||
PirepStatus::TAXI => 'pireps.status.taxi',
|
||||
PirepStatus::TAKEOFF => 'pireps.status.takeoff',
|
||||
PirepStatus::INIT_CLIM => 'pireps.status.initial_clb',
|
||||
PirepStatus::AIRBORNE => 'pireps.status.enroute',
|
||||
PirepStatus::ENROUTE => 'pireps.status.enroute',
|
||||
PirepStatus::DIVERTED => 'pireps.status.diverted',
|
||||
PirepStatus::APPROACH => 'pireps.status.approach',
|
||||
PirepStatus::APPROACH_ICAO => 'pireps.status.approach',
|
||||
PirepStatus::ON_FINAL => 'pireps.status.final_appr',
|
||||
PirepStatus::LANDING => 'pireps.status.landing',
|
||||
PirepStatus::LANDED => 'pireps.status.landed',
|
||||
PirepStatus::ARRIVED => 'pireps.status.arrived',
|
||||
PirepStatus::CANCELLED => 'pireps.status.cancelled',
|
||||
PirepStatus::EMERG_DECENT => 'pireps.status.emerg_decent',
|
||||
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',
|
||||
self::EMERG_DECENT => 'pireps.status.emerg_decent',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,21 +6,20 @@ use App\Interfaces\Enum;
|
||||
|
||||
/**
|
||||
* Class UserState
|
||||
* @package App\Models\Enums
|
||||
*/
|
||||
class UserState extends Enum
|
||||
{
|
||||
public const PENDING = 0;
|
||||
public const ACTIVE = 1;
|
||||
public const REJECTED = 2;
|
||||
public const ON_LEAVE = 3;
|
||||
public const PENDING = 0;
|
||||
public const ACTIVE = 1;
|
||||
public const REJECTED = 2;
|
||||
public const ON_LEAVE = 3;
|
||||
public const SUSPENDED = 4;
|
||||
|
||||
protected static $labels = [
|
||||
UserState::PENDING => 'user.state.pending',
|
||||
UserState::ACTIVE => 'user.state.active',
|
||||
UserState::REJECTED => 'user.state.rejected',
|
||||
UserState::ON_LEAVE => 'user.state.on_leave',
|
||||
UserState::SUSPENDED => 'user.state.suspended',
|
||||
self::PENDING => 'user.state.pending',
|
||||
self::ACTIVE => 'user.state.active',
|
||||
self::REJECTED => 'user.state.rejected',
|
||||
self::ON_LEAVE => 'user.state.on_leave',
|
||||
self::SUSPENDED => 'user.state.suspended',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user