libra/app/Enums/ConsultationType.php

18 lines
326 B
PHP

<?php
namespace App\Enums;
enum ConsultationType: string
{
case Free = 'free';
case Paid = 'paid';
public function label(): string
{
return match ($this) {
self::Free => __('enums.consultation_type.free'),
self::Paid => __('enums.consultation_type.paid'),
};
}
}