user-service/app/Enums/CreditCardType.php

27 lines
878 B
PHP

<?php
namespace App\Enums;
abstract class CreditCardType
{
const MASTER_CARD_CLASSIC = 'MASTER_CARD_CLASSIC';
const MASTER_CARD_GOLD = 'MASTER_CARD_GOLD';
const MASTER_CARD_PLATINUM = 'MASTER_CARD_PLATINUM';
const VISA_CARD_CLASSIC = 'VISA_CARD_CLASSIC';
const VISA_CARD_GOLD = 'VISA_CARD_GOLD';
const VISA_CARD_PLATINUM = 'VISA_CARD_PLATINUM';
public static function all()
{
return [
self::MASTER_CARD_CLASSIC => __('states.MASTER_CARD_CLASSIC'),
self::MASTER_CARD_GOLD => __('states.MASTER_CARD_GOLD'),
self::MASTER_CARD_PLATINUM => __('states.MASTER_CARD_PLATINUM'),
self::VISA_CARD_CLASSIC => __('states.VISA_CARD_CLASSIC'),
self::VISA_CARD_GOLD => __('states.VISA_CARD_GOLD'),
self::VISA_CARD_PLATINUM => __('states.VISA_CARD_PLATINUM'),
];
}
}