Completed
Push — master ( 473578...44ffdf )
by Adrien
06:51
created

BookableStateType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
6
7
class BookableStateType extends AbstractEnumType
8
{
9 1
    public function __construct()
10
    {
11
        $config = [
12 1
            \Application\DBAL\Types\BookableStateType::GOOD => 'Bon',
13
            \Application\DBAL\Types\BookableStateType::USED => 'Usagé',
14
            \Application\DBAL\Types\BookableStateType::DEGRADED => 'Dégradé',
15
        ];
16 1
        parent::__construct($config);
17 1
    }
18
}
19