Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
63.64% |
7 / 11 |
|
63.64% |
7 / 11 |
CRAP | |
0.00% |
0 / 1 |
Reponse | |
63.64% |
7 / 11 |
|
63.64% |
7 / 11 |
16.82 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getReponse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setReponse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getReponseRaison | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setReponseRaison | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getQuestion | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setQuestion | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getConformite | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setConformite | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
__clone | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace App\Domain\Registry\Model\ConformiteOrganisation; |
4 | |
5 | use Ramsey\Uuid\Uuid; |
6 | use Ramsey\Uuid\UuidInterface; |
7 | |
8 | class Reponse |
9 | { |
10 | /** |
11 | * @var UuidInterface |
12 | */ |
13 | private $id; |
14 | |
15 | /** |
16 | * @var int|null |
17 | */ |
18 | private $reponse; |
19 | |
20 | /** |
21 | * @var string|null |
22 | */ |
23 | private $reponseRaison; |
24 | |
25 | /** |
26 | * @var Question |
27 | */ |
28 | private $question; |
29 | |
30 | /** |
31 | * @var Conformite |
32 | */ |
33 | private $conformite; |
34 | |
35 | public function __construct() |
36 | { |
37 | $this->id = Uuid::uuid4(); |
38 | } |
39 | |
40 | public function getId(): UuidInterface |
41 | { |
42 | return $this->id; |
43 | } |
44 | |
45 | public function getReponse(): ?int |
46 | { |
47 | return $this->reponse; |
48 | } |
49 | |
50 | public function setReponse(?int $reponse): void |
51 | { |
52 | $this->reponse = $reponse; |
53 | } |
54 | |
55 | public function getReponseRaison(): ?string |
56 | { |
57 | return $this->reponseRaison; |
58 | } |
59 | |
60 | public function setReponseRaison(?string $reponseRaison): void |
61 | { |
62 | $this->reponseRaison = $reponseRaison; |
63 | } |
64 | |
65 | public function getQuestion(): Question |
66 | { |
67 | return $this->question; |
68 | } |
69 | |
70 | public function setQuestion(Question $question): void |
71 | { |
72 | $this->question = $question; |
73 | } |
74 | |
75 | public function getConformite(): Conformite |
76 | { |
77 | return $this->conformite; |
78 | } |
79 | |
80 | public function setConformite(Conformite $conformite): void |
81 | { |
82 | $this->conformite = $conformite; |
83 | } |
84 | |
85 | public function __clone() |
86 | { |
87 | $this->id = Uuid::uuid4(); |
88 | } |
89 | } |