18 lines
259 B
PHP
18 lines
259 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
enum CoursePricingType: string
|
|
{
|
|
case FREE = 'free';
|
|
case PAID = 'paid';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::FREE => 'Free',
|
|
self::PAID => 'Paid',
|
|
};
|
|
}
|
|
}
|