Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
50.00% |
3 / 6 |
|
50.00% |
3 / 6 |
CRAP | |
0.00% |
0 / 1 |
Question | |
50.00% |
3 / 6 |
|
50.00% |
3 / 6 |
10.50 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getQuestion | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setQuestion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getPosition | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setPosition | |
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\Model\ConformiteTraitement; |
25 | |
26 | use Ramsey\Uuid\Uuid; |
27 | use Ramsey\Uuid\UuidInterface; |
28 | |
29 | class Question |
30 | { |
31 | /** |
32 | * @var UuidInterface |
33 | */ |
34 | private $id; |
35 | |
36 | /** |
37 | * @var string |
38 | */ |
39 | private $question; |
40 | |
41 | /** |
42 | * @var int |
43 | */ |
44 | private $position; |
45 | |
46 | public function __construct() |
47 | { |
48 | $this->id = Uuid::uuid4(); |
49 | } |
50 | |
51 | public function getId(): UuidInterface |
52 | { |
53 | return $this->id; |
54 | } |
55 | |
56 | public function getQuestion(): string |
57 | { |
58 | return $this->question; |
59 | } |
60 | |
61 | public function setQuestion(string $question): void |
62 | { |
63 | $this->question = $question; |
64 | } |
65 | |
66 | public function getPosition(): int |
67 | { |
68 | return $this->position; |
69 | } |
70 | |
71 | public function setPosition(int $position): void |
72 | { |
73 | $this->position = $position; |
74 | } |
75 | } |