44 lines
990 B
PHP
44 lines
990 B
PHP
<?php
|
|
|
|
namespace App\Enums\SeasonalSections;
|
|
|
|
use App\Traits\Enums\BaseEnum;
|
|
|
|
enum BackgroundEnum: int
|
|
{
|
|
use BaseEnum;
|
|
|
|
case candlemas = 1;
|
|
case chinesenewyear = 2;
|
|
case endofyear = 3;
|
|
|
|
/**
|
|
* Optionnal labels definition.
|
|
*
|
|
* @phpstan-ignore-next-line
|
|
*/
|
|
private const LABELS = [
|
|
self::candlemas->name => 'Chandeleur',
|
|
self::chinesenewyear->name => 'Nouvel an chinois',
|
|
self::endofyear->name => 'Fin d\'année',
|
|
];
|
|
|
|
/**
|
|
* Custom added classes definition
|
|
*/
|
|
private const BOOTSTRAPCLASS = [
|
|
self::candlemas->name => 'seasonal-sections-candlemas',
|
|
self::chinesenewyear->name => 'seasonal-sections-chinesenewyear',
|
|
self::endofyear->name => 'seasonal-sections-endofyear',
|
|
];
|
|
|
|
/**
|
|
* Get Class
|
|
*
|
|
* @return string
|
|
*/
|
|
public function bootstrapClass(): string
|
|
{
|
|
return self::BOOTSTRAPCLASS[$this->name];
|
|
}
|
|
}
|