41 lines
627 B
PHP
41 lines
627 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Enums;
|
||
|
|
|
||
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* SMTP Types
|
||
|
|
*
|
||
|
|
* @method static self DEV()
|
||
|
|
* @method static self PROD()
|
||
|
|
*/
|
||
|
|
final class Environment extends BaseEnumRoutable
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Enum values
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
protected static function values(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'DEV' => 0,
|
||
|
|
'PROD' => 1,
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Enum labels
|
||
|
|
*
|
||
|
|
* @return array
|
||
|
|
*/
|
||
|
|
protected static function labels(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'DEV' => 'Developpement',
|
||
|
|
'PROD' => 'Production'
|
||
|
|
];
|
||
|
|
}
|
||
|
|
}
|