ldc-legaulois/app/Enums/ArticleCategory.php
2023-06-26 16:02:23 +02:00

31 lines
632 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnumRoutable;
/**
* @method static self actu()
* @method static self jeux()
* @method static self video()
* @method static self sondage()
* @method static self astuce()
*/
final class ArticleCategory extends BaseEnumRoutable
{
/**
* Enum labels
*
* @return array
*/
protected static function labels(): array
{
return [
'actu' => __('Actus'),
'jeux' => __('Jeux-Concours'),
'video' => __('Vidéo'),
'sondage' => __('Sondage'),
'astuce' => __('Astuces')
];
}
}