Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
50.00% |
8 / 16 |
|
50.00% |
8 / 16 |
CRAP | |
0.00% |
0 / 1 |
AnalyseAvis | |
50.00% |
8 / 16 |
|
50.00% |
8 / 16 |
48.00 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getId | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getReponse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setReponse | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDate | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDate | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getDetail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
setDetail | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getAnalyseImpactReferent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAnalyseImpactReferent | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getAnalyseImpactDpd | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAnalyseImpactDpd | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getAnalyseImpactRepresentant | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAnalyseImpactRepresentant | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getAnalyseImpactResponsable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setAnalyseImpactResponsable | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace App\Domain\AIPD\Model; |
6 | |
7 | use App\Domain\AIPD\Dictionary\ReponseAvisDictionary; |
8 | use Ramsey\Uuid\Uuid; |
9 | use Ramsey\Uuid\UuidInterface; |
10 | |
11 | class AnalyseAvis |
12 | { |
13 | private UuidInterface $id; |
14 | |
15 | /** |
16 | * @see ReponseAvisDictionary |
17 | */ |
18 | private string $reponse = ReponseAvisDictionary::REPONSE_NONE; |
19 | |
20 | private ?\DateTime $date; |
21 | |
22 | private ?string $detail; |
23 | |
24 | private AnalyseImpact $analyseImpactReferent; |
25 | private AnalyseImpact $analyseImpactDpd; |
26 | private AnalyseImpact $analyseImpactRepresentant; |
27 | private AnalyseImpact $analyseImpactResponsable; |
28 | |
29 | public function __construct() |
30 | { |
31 | $this->id = Uuid::uuid4(); |
32 | } |
33 | |
34 | public function getId(): UuidInterface |
35 | { |
36 | return $this->id; |
37 | } |
38 | |
39 | public function getReponse(): string |
40 | { |
41 | return $this->reponse; |
42 | } |
43 | |
44 | public function setReponse(string $reponse): void |
45 | { |
46 | $this->reponse = $reponse; |
47 | } |
48 | |
49 | public function getDate(): ?\DateTime |
50 | { |
51 | return $this->date; |
52 | } |
53 | |
54 | public function setDate(?\DateTime $date): void |
55 | { |
56 | $this->date = $date; |
57 | } |
58 | |
59 | public function getDetail(): ?string |
60 | { |
61 | return $this->detail; |
62 | } |
63 | |
64 | public function setDetail(?string $detail): void |
65 | { |
66 | $this->detail = $detail; |
67 | } |
68 | |
69 | public function getAnalyseImpactReferent(): AnalyseImpact |
70 | { |
71 | return $this->analyseImpactReferent; |
72 | } |
73 | |
74 | public function setAnalyseImpactReferent(AnalyseImpact $analyseImpactReferent): void |
75 | { |
76 | $this->analyseImpactReferent = $analyseImpactReferent; |
77 | } |
78 | |
79 | public function getAnalyseImpactDpd(): AnalyseImpact |
80 | { |
81 | return $this->analyseImpactDpd; |
82 | } |
83 | |
84 | public function setAnalyseImpactDpd(AnalyseImpact $analyseImpactDpd): void |
85 | { |
86 | $this->analyseImpactDpd = $analyseImpactDpd; |
87 | } |
88 | |
89 | public function getAnalyseImpactRepresentant(): AnalyseImpact |
90 | { |
91 | return $this->analyseImpactRepresentant; |
92 | } |
93 | |
94 | public function setAnalyseImpactRepresentant(AnalyseImpact $analyseImpactRepresentant): void |
95 | { |
96 | $this->analyseImpactRepresentant = $analyseImpactRepresentant; |
97 | } |
98 | |
99 | public function getAnalyseImpactResponsable(): AnalyseImpact |
100 | { |
101 | return $this->analyseImpactResponsable; |
102 | } |
103 | |
104 | public function setAnalyseImpactResponsable(AnalyseImpact $analyseImpactResponsable): void |
105 | { |
106 | $this->analyseImpactResponsable = $analyseImpactResponsable; |
107 | } |
108 | } |