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

EmployeeStaffEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDefaultValue() 0 4 1
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