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

AudienceEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
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
final class AudienceEnum extends AbstractEnumType
8
{
9
    public const ADULTS = 'adults';
10
    public const KIDS = 'kids';
11
12
    protected static $choices = [
13
        self::ADULTS => 'Adults',
14
        self::KIDS => 'Kids',
15
    ];
16
17
    public static function getDefaultValue(): string
18
    {
19
        return self::ADULTS;
20
    }
21
}
22