44 lines
912 B
PHP
44 lines
912 B
PHP
<?php
|
|
|
|
namespace App\Enums\Order;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* @method static self inShop()
|
|
* Payment in the selected shop when retriving the order
|
|
* @method static self stripe()
|
|
* Payment using Stripe services
|
|
* @method static self systemPay()
|
|
* Payment using SystemPay services
|
|
*/
|
|
final class PaymentModeEnum extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* Enum values
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'inShop' => 1,
|
|
'stripe' => 2,
|
|
'systemPay' => 3
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Enum labels
|
|
*
|
|
* @return array
|
|
*/
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'inShop' => __('Au magasin'),
|
|
'stripe' => __('Carte Bancaire (via Stripe)'),
|
|
'systemPay' => __('Carte Bancaire (via SystemPay)')
|
|
];
|
|
}
|
|
}
|