42 lines
758 B
PHP
42 lines
758 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* This is an enumeration class,
|
|
* the following methods are its possible values
|
|
*
|
|
* @method static self authenticated()
|
|
* @method static self guest()
|
|
*
|
|
*/
|
|
class PriceShowingMode extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* Enum values
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'authenticated' => 'authenticated',
|
|
'guest' => 'guest',
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Enum labels
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'authenticated' => __('Client Connecté'),
|
|
'guest' => __('Public'),
|
|
];
|
|
}
|
|
}
|