for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Enum;
use Ecodev\Felix\Api\Enum\LocalizedPhpEnumType;
enum BookableState: string implements LocalizedPhpEnumType
{
case Good = 'good';
case Used = 'used';
case Degraded = 'degraded';
public function getDescription(): string
return match ($this) {
self::Good => 'Bon',
self::Used => 'Usagé',
self::Degraded => 'Dégradé',
};
}