Passed
Push — master ( fa1fdd...3779cb )
by Adrien
19:52 queued 02:59
created

MessageTypeType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 13
c 0
b 0
f 0
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10
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 MessageTypeType extends EnumType
10
{
11 1
    public function __construct()
12
    {
13 1
        $config = [
14
            \Application\DBAL\Types\MessageTypeType::REGISTER => 'Création de compte',
15
            \Application\DBAL\Types\MessageTypeType::CONFIRMED_REGISTRATION => 'Création de compte confirmée',
16
            \Application\DBAL\Types\MessageTypeType::RESET_PASSWORD => 'Changement de mot de passe',
17
            \Application\DBAL\Types\MessageTypeType::UPDATED_USER => 'Utilisateur modifié',
18
            \Application\DBAL\Types\MessageTypeType::USER_PENDING_ORDER => 'Commande en attente',
19
            \Application\DBAL\Types\MessageTypeType::USER_VALIDATED_ORDER => 'Commande validée',
20
            \Application\DBAL\Types\MessageTypeType::ADMIN_PENDING_ORDER => 'Commande a besoin de BVR',
21
            \Application\DBAL\Types\MessageTypeType::ADMIN_VALIDATED_ORDER => 'Commande doit être comptabilisée',
22
            \Application\DBAL\Types\MessageTypeType::REQUEST_MEMBERSHIP_END => 'Demande d\'arrêt de cotisations',
23
            \Application\DBAL\Types\MessageTypeType::NEWSLETTER_SUBSCRIPTION => 'Demande d\'inscription à la newsletter',
24
        ];
25
26 1
        parent::__construct($config);
27
    }
28
}
29