2022-11-30 17:03:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Enums\Order;
|
|
|
|
|
|
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @method static self reviewBasket()
|
|
|
|
|
* @method static self shippment()
|
|
|
|
|
* @method static self shippingMethod()
|
2022-12-19 16:20:00 +01:00
|
|
|
* @method static self paymentReview()
|
2022-11-30 17:03:43 +01:00
|
|
|
*/
|
|
|
|
|
final class OrderProcess extends BaseEnumRoutable
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Values
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
protected static function values(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'reviewBasket' => 0,
|
|
|
|
|
'shippingMethod' => 1,
|
|
|
|
|
'shippment' => 2,
|
2022-12-19 16:20:00 +01:00
|
|
|
'paymentReview' => 3
|
2022-11-30 17:03:43 +01:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Labels
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
protected static function labels(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'reviewBasket' => trans('Panier'),
|
|
|
|
|
'shippingMethod' => trans('Expédition - mode'),
|
|
|
|
|
'shippment' => trans('Expédition - détails'),
|
2022-12-19 16:20:00 +01:00
|
|
|
'paymentReview' => trans('Paiement')
|
2022-11-30 17:03:43 +01:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|