complete story 3.7 with qa test
This commit is contained in:
@@ -6,4 +6,12 @@ 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'),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,4 +7,13 @@ enum PaymentStatus: string
|
||||
case Pending = 'pending';
|
||||
case Received = 'received';
|
||||
case NotApplicable = 'na';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Pending => __('enums.payment_status.pending'),
|
||||
self::Received => __('enums.payment_status.received'),
|
||||
self::NotApplicable => __('enums.payment_status.na'),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user