Separate out enums to static

This commit is contained in:
Nabeel Shahzad 2017-06-28 19:54:37 -05:00
parent 477b99de29
commit cd5f58b0a1
2 changed files with 25 additions and 7 deletions

24
config/enums.php Normal file
View File

@ -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,
];
}

View File

@ -6,11 +6,5 @@ return [
* Pick one of:
* dollar, euro, gbp, yen, jpy, rupee, ruble
*/
'currency' => 'dollar',
'fuel_types' => [
'100LL' => 0,
'JETA' => 1,
'MOGAS' => 2,
],
'currency' => env('PHPVMS_CURRENCY', 'dollar'),
];