Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
12 / 12 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
RequestObjectDictionary | |
100.00% |
12 / 12 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getObjects | |
100.00% |
10 / 10 |
|
100.00% |
1 / 1 |
1 | |||
getObjectsKeys | |
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 RequestObjectDictionary extends SimpleDictionary |
29 | { |
30 | public const OBJECT_CORRECT = 'correct'; |
31 | public const OBJECT_DELETE = 'delete'; |
32 | public const OBJECT_WITHDRAW_CONSENT = 'withdraw_consent'; |
33 | public const OBJECT_ACCESS = 'access'; |
34 | public const OBJECT_DATA_PORTABILITY = 'data_portability'; |
35 | public const OBJECT_LIMIT_TREATMENT = 'limit_treatment'; |
36 | public const OBJECT_OPPOSITE_TREATMENT = 'opposite_treatment'; |
37 | public const OBJECT_OTHER = 'other'; |
38 | |
39 | public function __construct() |
40 | { |
41 | parent::__construct('registry_request_object', self::getObjects()); |
42 | } |
43 | |
44 | /** |
45 | * Get an array of Objects. |
46 | * |
47 | * @return array |
48 | */ |
49 | public static function getObjects() |
50 | { |
51 | return [ |
52 | self::OBJECT_CORRECT => 'Rectifier des données', |
53 | self::OBJECT_DELETE => 'Supprimer des données', |
54 | self::OBJECT_WITHDRAW_CONSENT => 'Retirer le consentement', |
55 | self::OBJECT_ACCESS => 'Accéder à des données', |
56 | self::OBJECT_DATA_PORTABILITY => 'Portabilité des données', |
57 | self::OBJECT_LIMIT_TREATMENT => 'Limiter le traitement', |
58 | self::OBJECT_OPPOSITE_TREATMENT => "S'opposer au traitement", |
59 | self::OBJECT_OTHER => 'Autre', |
60 | ]; |
61 | } |
62 | |
63 | /** |
64 | * Get keys of the Objects array. |
65 | * |
66 | * @return array |
67 | */ |
68 | public static function getObjectsKeys() |
69 | { |
70 | return \array_keys(self::getObjects()); |
71 | } |
72 | } |