Passed
Push — master ( 3779cb...2be227 )
by Sam
06:31
created

PaymentMethodType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 11
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 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
6
7
use Ecodev\Felix\Api\Enum\EnumType;
8
9
class PaymentMethodType extends EnumType
10
{
11 1
    public function __construct()
12
    {
13 1
        $config = [
14
            \Application\DBAL\Types\PaymentMethodType::DATATRANS => 'Carte de crédit',
15
            \Application\DBAL\Types\PaymentMethodType::EBANKING => 'Virement bancaire',
16
            \Application\DBAL\Types\PaymentMethodType::BVR => 'Bulletin de versement',
17
        ];
18
19 1
        parent::__construct($config);
20
    }
21
}
22