Separate out enums to static
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class VMSEnums
|
||||||
|
{
|
||||||
|
public static $sources
|
||||||
|
= [
|
||||||
|
'ACARS' => 0,
|
||||||
|
'MANUAL' => 1,
|
||||||
|
];
|
||||||
|
|
||||||
|
public static $pirep_status
|
||||||
|
= [
|
||||||
|
'PENDING' => 0,
|
||||||
|
'ACCEPTED' => 1,
|
||||||
|
'REJECTED' => -1,
|
||||||
|
];
|
||||||
|
|
||||||
|
public static $fuel_types
|
||||||
|
= [
|
||||||
|
'100LL' => 0,
|
||||||
|
'JETA' => 1,
|
||||||
|
'MOGAS' => 2,
|
||||||
|
];
|
||||||
|
}
|
||||||
+1
-7
@@ -6,11 +6,5 @@ return [
|
|||||||
* Pick one of:
|
* Pick one of:
|
||||||
* dollar, euro, gbp, yen, jpy, rupee, ruble
|
* dollar, euro, gbp, yen, jpy, rupee, ruble
|
||||||
*/
|
*/
|
||||||
'currency' => 'dollar',
|
'currency' => env('PHPVMS_CURRENCY', 'dollar'),
|
||||||
|
|
||||||
'fuel_types' => [
|
|
||||||
'100LL' => 0,
|
|
||||||
'JETA' => 1,
|
|
||||||
'MOGAS' => 2,
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user