ldc-legaulois/app/Enums/OrderStatus.php
2021-03-04 09:38:39 +01:00

36 lines
773 B
PHP

<?php
namespace App\Enums;
use Kwaadpepper\Enum\BaseEnum;
/**
* @method static self waiting()
* @method static self failed()
* @method static self waitingCheck()
* @method static self sentCheck()
* @method static self payed()
*/
final class OrderStatus extends BaseEnum
{
protected static function values(): array
{
return [
'waiting' => 0,
'failed' => 1,
'payed' => 2,
'waitingCheck' => 3,
'sentCheck' => 4
];
}
protected static function labels(): array
{
return [
'waiting' => __('En attente'),
'failed' => __('Échec'),
'payed' => __('Réglée'),
'sentCheck' => __('Par chèque bancaire')
];
}
}