54 lines
955 B
PHP
54 lines
955 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* @method static self none()
|
|
* @method static self pending()
|
|
* @method static self no()
|
|
* @method static self yes()
|
|
*/
|
|
final class EleveurOcbStatus extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* Enum values
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'none' => 0,
|
|
'pending' => 1,
|
|
'no' => 2,
|
|
'yes' => 3
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Enum labels
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'none' => 'Non',
|
|
'pending' => 'En attente',
|
|
'no' => 'Réfusé',
|
|
'yes' => 'Valide'
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Output the value as a string
|
|
*
|
|
* @return string
|
|
*/
|
|
public function __toString(): string
|
|
{
|
|
return (string)$this->label;
|
|
}
|
|
}
|