33 lines
732 B
PHP
33 lines
732 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Domain\Enums;
|
||
|
|
|
||
|
|
use Shared\Enums\BaseEnum;
|
||
|
|
|
||
|
|
enum StaticPageSlug: string
|
||
|
|
{
|
||
|
|
/** @use \Shared\Enums\BaseEnum<string> */
|
||
|
|
use BaseEnum;
|
||
|
|
|
||
|
|
case CONTACT = 'contact';
|
||
|
|
case LEGALS = 'legals';
|
||
|
|
case TERMS = 'cgv';
|
||
|
|
case PRIVACY = 'confidentialite';
|
||
|
|
case FAQ = 'faq';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Optionnal labels definition
|
||
|
|
*
|
||
|
|
* @phpstan-ignore-next-line
|
||
|
|
*/
|
||
|
|
private const LABELS = [
|
||
|
|
self::CONTACT->name => 'contact',
|
||
|
|
self::LEGALS->name => 'mentions légales',
|
||
|
|
self::TERMS->name => 'cgv',
|
||
|
|
self::PRIVACY->name => 'confidentialité',
|
||
|
|
self::FAQ->name => 'faq',
|
||
|
|
];
|
||
|
|
}
|