File size: 958 Bytes
5f32fbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php

declare(strict_types=1);

namespace App\Enums;

use App\Enums\Traits\EnumTo;
use App\Enums\Traits\StringBackedEnumTrait;

enum Introduction: string implements Contracts\WithStringBackedEnum
{
    use EnumTo;
    use StringBackedEnumTrait;

    case INITIALIZE = 'initialize';
    case AFFILIATE_SEND = 'affiliate_send';
    case SELECT_PLAN = 'select_plan';
    case AI_WRITER = 'ai_writer';
    case AI_IMAGE = 'ai_image';
    case AI_PDF = 'ai_pdf';
    case AI_CODE = 'ai_code';

    public function label(): string
    {
        return match ($this) {
            self::INITIALIZE     => __('Introduction'),
            self::AFFILIATE_SEND => __('Affiliate'),
            self::SELECT_PLAN    => __('Select Plan'),
            self::AI_WRITER      => __('AI Writer'),
            self::AI_IMAGE       => __('AI Image'),
            self::AI_PDF         => __('AI File Chat'),
            self::AI_CODE        => __('AI Code'),
        };
    }
}