ldc-legaulois/app/Enums/ArticleCategory.php

38 lines
786 B
PHP
Raw Normal View History

2021-04-26 10:29:34 +02:00
<?php
namespace App\Enums;
2021-09-03 18:36:44 +02:00
use Kwaadpepper\Enum\BaseEnumRoutable;
2021-04-26 10:29:34 +02:00
/**
* @method static self actu()
* @method static self jeux()
* @method static self video()
* @method static self sondage()
* @method static self astuce()
*/
2021-09-03 18:36:44 +02:00
final class ArticleCategory extends BaseEnumRoutable
2021-04-26 10:29:34 +02:00
{
protected static function values(): array
{
return [
'actu' => 0,
'jeux' => 1,
'video' => 2,
'sondage' => 3,
'astuce' => 4
];
}
protected static function labels(): array
{
return [
'actu' => __('Actus'),
'jeux' => __('Jeux-Concours'),
'video' => __('Vidéo'),
'sondage' => __('Sondage'),
'astuce' => __('Astuces')
];
}
}