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