ldc-legaulois/app/Enums/OrderStatus.php

37 lines
789 B
PHP
Raw Normal View History

2021-03-04 09:38:39 +01:00
<?php
namespace App\Enums;
2021-09-03 18:36:44 +02:00
use Kwaadpepper\Enum\BaseEnumRoutable;
2021-03-04 09:38:39 +01:00
/**
* @method static self waiting()
* @method static self failed()
* @method static self waitingCheck()
* @method static self sentCheck()
* @method static self payed()
*/
2021-09-03 18:36:44 +02:00
final class OrderStatus extends BaseEnumRoutable
2021-03-04 09:38:39 +01:00
{
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')
];
}
}