Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
15 / 15 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
ProofTypeDictionary | |
100.00% |
15 / 15 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getTypes | |
100.00% |
13 / 13 |
|
100.00% |
1 / 1 |
1 | |||
getTypesKeys | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | /** |
4 | * This file is part of the MADIS - RGPD Management application. |
5 | * |
6 | * @copyright Copyright (c) 2018-2019 Soluris - Solutions Numériques Territoriales Innovantes |
7 | * |
8 | * This program is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU Affero General Public License as published by |
10 | * the Free Software Foundation, either version 3 of the License, or |
11 | * (at your option) any later version. |
12 | * |
13 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | * GNU Affero General Public License for more details. |
17 | * |
18 | * You should have received a copy of the GNU Affero General Public License |
19 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
20 | */ |
21 | |
22 | declare(strict_types=1); |
23 | |
24 | namespace App\Domain\Registry\Dictionary; |
25 | |
26 | use App\Application\Dictionary\SimpleDictionary; |
27 | |
28 | class ProofTypeDictionary extends SimpleDictionary |
29 | { |
30 | public const TYPE_POLICY_MANAGEMENT = 'policy_management'; |
31 | public const TYPE_POLICY_PROTECTION = 'policy_protection'; |
32 | public const TYPE_CONCERNED_PEOPLE_REQUEST = 'concerned_people_request'; |
33 | public const TYPE_MESUREMENT = 'mesurement'; |
34 | public const TYPE_CERTIFICATION = 'certification'; |
35 | public const TYPE_IT_CHARTER = 'it_charter'; |
36 | public const TYPE_DELIBERATION = 'deliberation'; |
37 | public const TYPE_CONTRACT = 'contract'; |
38 | public const TYPE_SENSITIZATION = 'sensitization'; |
39 | public const TYPE_BALANCE_SHEET = 'balance_sheet'; |
40 | public const TYPE_OTHER = 'other'; |
41 | |
42 | public function __construct() |
43 | { |
44 | parent::__construct('registry_proof_type', self::getTypes()); |
45 | } |
46 | |
47 | /** |
48 | * Get an array of Types. |
49 | * |
50 | * @return array |
51 | */ |
52 | public static function getTypes() |
53 | { |
54 | return [ |
55 | self::TYPE_POLICY_MANAGEMENT => 'Politique de Gestion', |
56 | self::TYPE_POLICY_PROTECTION => 'Politique de Protection', |
57 | self::TYPE_CONCERNED_PEOPLE_REQUEST => 'Demande de personnes concernées', |
58 | self::TYPE_MESUREMENT => 'Actions de protection', |
59 | self::TYPE_CERTIFICATION => 'Attestations', |
60 | self::TYPE_IT_CHARTER => 'Charte informatique', |
61 | self::TYPE_DELIBERATION => 'Délibération', |
62 | self::TYPE_CONTRACT => 'Contrat', |
63 | self::TYPE_SENSITIZATION => 'Sensibilisation', |
64 | self::TYPE_BALANCE_SHEET => 'Bilan', |
65 | self::TYPE_OTHER => 'Autre', |
66 | ]; |
67 | } |
68 | |
69 | /** |
70 | * Get keys of the Types array. |
71 | * |
72 | * @return array |
73 | */ |
74 | public static function getTypesKeys() |
75 | { |
76 | return \array_keys(self::getTypes()); |
77 | } |
78 | } |