22 lines
310 B
PHP
22 lines
310 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shared\Enums;
|
|
|
|
enum Currency: int
|
|
{
|
|
/** @use BaseEnum<int> */
|
|
use BaseEnum;
|
|
|
|
case EUR = 1;
|
|
|
|
/**
|
|
* Optional labels definition
|
|
*
|
|
* @phpstan-ignore-next-line
|
|
*/
|
|
private const LABELS = [
|
|
self::EUR->name => 'Euro',
|
|
];
|
|
}
|