Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
ReponseAvisDictionary | |
100.00% |
7 / 7 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getReponseAvis | |
100.00% |
6 / 6 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace App\Domain\AIPD\Dictionary; |
6 | |
7 | use App\Application\Dictionary\SimpleDictionary; |
8 | |
9 | class ReponseAvisDictionary extends SimpleDictionary |
10 | { |
11 | public const REPONSE_NONE = 'pas_de_reponse'; |
12 | public const REPONSE_FAVORABLE = 'favorable'; |
13 | public const REPONSE_FAVORABLE_RESERVE = 'favorable_reserve'; |
14 | public const REPONSE_DEFAVORABLE = 'defavorable'; |
15 | |
16 | public function __construct() |
17 | { |
18 | parent::__construct('reponse_avis', self::getReponseAvis()); |
19 | } |
20 | |
21 | public static function getReponseAvis() |
22 | { |
23 | return [ |
24 | self::REPONSE_NONE => 'Pas de réponse', |
25 | self::REPONSE_FAVORABLE => 'Favorable', |
26 | self::REPONSE_FAVORABLE_RESERVE => 'Favorable avec réserve(s)', |
27 | self::REPONSE_DEFAVORABLE => 'Défavorable', |
28 | ]; |
29 | } |
30 | } |