Completed
Pull Request — master (#191)
by Serhii
02:32
created

EmployeeStaffEnum::getDefaultValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace App\Enum;
4
5
use Fresh\DoctrineEnumBundle\DBAL\Types\AbstractEnumType;
6
7
class EmployeeStaffEnum extends AbstractEnumType
8
{
9
    public const ART_CORE = 'art-core';
10
    public const ART_PRODUCTION = 'art-production';
11
    public const ART_DIRECTOR = 'art-director';
12
    public const ADMINISTRATIVE = 'administrative';
13
    public const CREATIVE_CORE = 'creative';
14
    public const INVITED_ACTOR = 'invited';
15
    public const EPOCH = 'epoch';
16
17
    protected static $choices = [
18
        self::ADMINISTRATIVE => 'Administrative',
19
        self::ART_DIRECTOR => 'Art-director',
20
        self::ART_PRODUCTION => 'Art-production',
21
        self::ART_CORE => 'Art-core',
22
        self::CREATIVE_CORE => 'Creative',
23
        self::INVITED_ACTOR => 'Invited actor',
24
        self::EPOCH => 'Epoch',
25
    ];
26
27
    public static function getDefaultValue(): string
28
    {
29
        return self::CREATIVE_CORE;
30
    }
31
}
32