- changed order pk column to id - refactored and fixed inShop - using php Money for transaction
44 lines
926 B
PHP
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')
|
|
];
|
|
}
|
|
}
|