ldc-legaulois/app/Enums/EleveurOcbStatus.php

38 lines
747 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
{
protected static function values(): array
{
return [
'none' => 0,
'pending' => 1,
'no' => 2,
'yes' => 3
];
}
protected static function labels(): array
{
return [
'none' => 'Non',
'pending' => 'En attente',
'no' => 'Réfusé',
'yes' => 'Valide'
];
}
public function __toString(): string
{
return (string)$this->label;
}
}