Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
91.67% |
11 / 12 |
|
66.67% |
2 / 3 |
CRAP | |
0.00% |
0 / 1 |
TreatmentSpecificDictionary | |
91.67% |
11 / 12 |
|
66.67% |
2 / 3 |
3.01 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getSpecificTreatment | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
1 | |||
getgetSpecificTreatmentsKeys | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
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 TreatmentSpecificDictionary extends SimpleDictionary |
29 | { |
30 | public const LARGE_SCALE_COLLECTION = 'large_scale_collection'; |
31 | public const DATA_CROSSING = 'data_crossing'; |
32 | public const AUTOMATED_DECISION_WITH_LEGAL_EFFECT = 'automated_decisions_with_legal_effect'; |
33 | public const EVALUATION_OR_RATING = 'evaluation_or_rating'; |
34 | public const AUTOMATIC_EXCLUSION_SERVICE = 'automatic_exclusion_service'; |
35 | public const VULNERABLE_PEOPLE = 'vulnerable_people'; |
36 | public const SYSTEMATIC_MONITORING = 'systematic_monitoring'; |
37 | public const INNOVATE_USE = 'innovative_use'; |
38 | |
39 | public function __construct() |
40 | { |
41 | parent::__construct('registry_treatment_specific', self::getSpecificTreatment()); |
42 | } |
43 | |
44 | /** |
45 | * Get an array of Basis. |
46 | * |
47 | * @return array |
48 | */ |
49 | public static function getSpecificTreatment() |
50 | { |
51 | return [ |
52 | self::LARGE_SCALE_COLLECTION => 'Collecte à large échelle', |
53 | self::DATA_CROSSING => 'Croisement d\'ensemble de données', |
54 | self::AUTOMATED_DECISION_WITH_LEGAL_EFFECT => 'Décision automatique avec effet juridique', |
55 | self::EVALUATION_OR_RATING => 'Évaluation ou notation', |
56 | self::AUTOMATIC_EXCLUSION_SERVICE => 'Exclusion du bénéfice d\'un droit, d’un service ou contrat', |
57 | self::VULNERABLE_PEOPLE => 'Personnes vulnérables', |
58 | self::SYSTEMATIC_MONITORING => 'Surveillance systématique', |
59 | self::INNOVATE_USE => 'Usage innovant', |
60 | ]; |
61 | } |
62 | |
63 | /** |
64 | * Get keys of the Basis array. |
65 | * |
66 | * @return array |
67 | */ |
68 | public static function getgetSpecificTreatmentsKeys() |
69 | { |
70 | return \array_keys(self::getSpecificTreatment()); |
71 | } |
72 | } |