Passed
Pull Request — master (#121)
by
unknown
25:02 queued 20:48
created

AccountTypeType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 14
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Api\Enum;
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_ENUM, expecting T_STRING on line 5 at column 26
Loading history...
6
7
use Ecodev\Felix\Api\Enum\EnumType;
8
9
class AccountTypeType extends EnumType
10
{
11 1
    public function __construct()
12
    {
13 1
        $config = [
14
            \Application\DBAL\Types\AccountTypeType::ASSET => 'actif',
15
            \Application\DBAL\Types\AccountTypeType::LIABILITY => 'passif',
16
            \Application\DBAL\Types\AccountTypeType::REVENUE => 'produit',
17
            \Application\DBAL\Types\AccountTypeType::EXPENSE => 'charge',
18
            \Application\DBAL\Types\AccountTypeType::EQUITY => 'résultat',
19
            \Application\DBAL\Types\AccountTypeType::GROUP => 'groupe',
20
        ];
21
22 1
        parent::__construct($config);
23
    }
24
}
25