ldc-boutique-cnc/app/Enums/Order/OrderProcess.php
Jérémy Munsch b757d7df9d
Payment system PART2 : Stripe OK SYNC 46
- changed order pk column to id
- refactored and fixed inShop
- using php Money for transaction
2023-03-09 12:07:40 +01:00

44 lines
926 B
PHP

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