ldc-web/app/Enums/PhpVersion.php
2022-09-21 11:17:58 +00:00

49 lines
888 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* Servers Different Types
*
* @method static self v5_6()
* @method static self v7_3()
* @method static self v7_4()
* @method static self v8()
* @method static self v8_1()
*/
final class PhpVersion extends BaseEnumRoutable
{
/**
* Enum values
*
* @return array
*/
protected static function values(): array
{
return [
'v5_6' => 0,
'v7_3' => 1,
'v7_4' => 2,
'v8' => 3,
'v8_1' => 4
];
}
/**
* Enum labels
*
* @return array
*/
protected static function labels(): array
{
return [
'v5_6' => 'PHP 5.6',
'v7_3' => 'PHP 7.3',
'v7_4' => 'PHP 7.4',
'v8' => 'PHP 8',
'v8_1' => 'PHP 8.1'
];
}
}