Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
StatutAnalyseImpactDictionary
100.00% covered (success)
100.00%
9 / 9
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getStatuts
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\AIPD\Dictionary;
6
7use App\Application\Dictionary\SimpleDictionary;
8
9class StatutAnalyseImpactDictionary extends SimpleDictionary
10{
11    public const NON_REALISEE            = 'non_realisee';
12    public const FAVORABLE               = 'favorable';
13    public const FAVORABLE_RESERVE       = 'favorable_reserve';
14    public const FAVORABLE_AVEC_RESERVES = 'favorable_avec_reserves';
15    public const NON_FAVORABLE           = 'defavorable';
16    public const EN_COURS                = 'en_cours';
17
18    public function __construct()
19    {
20        parent::__construct('statut_analyse_impact', $this->getStatuts());
21    }
22
23    public static function getStatuts()
24    {
25        return [
26            self::NON_REALISEE            => 'Non réalisée',
27            self::FAVORABLE               => 'Favorable',
28            self::FAVORABLE_RESERVE       => 'Favorable avec réserve(s)',
29            self::FAVORABLE_AVEC_RESERVES => 'Favorable avec réserve(s)',
30            self::NON_FAVORABLE           => 'Non favorable',
31            self::EN_COURS                => 'En cours',
32        ];
33    }
34}