Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
60.00% |
3 / 5 |
|
33.33% |
1 / 3 |
CRAP | |
0.00% |
0 / 1 |
ModeleQuestionConformite | |
60.00% |
3 / 5 |
|
33.33% |
1 / 3 |
5.02 | |
0.00% |
0 / 1 |
__construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
2 | |||
getModeleAnalyse | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
setModeleAnalyse | |
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 JMS\Serializer\Annotation as Serializer; |
8 | |
9 | /** |
10 | * @Serializer\ExclusionPolicy("none") |
11 | */ |
12 | class ModeleQuestionConformite extends AbstractQuestionConformite |
13 | { |
14 | /** |
15 | * @Serializer\Exclude |
16 | */ |
17 | private ModeleAnalyse $modeleAnalyse; |
18 | |
19 | public function __construct(string $question, int $position, ?ModeleAnalyse $modeleAnalyse = null) |
20 | { |
21 | parent::__construct($question, $position); |
22 | |
23 | if (!is_null($modeleAnalyse)) { |
24 | $this->modeleAnalyse = $modeleAnalyse; |
25 | } |
26 | } |
27 | |
28 | public function getModeleAnalyse(): ModeleAnalyse |
29 | { |
30 | return $this->modeleAnalyse; |
31 | } |
32 | |
33 | public function setModeleAnalyse(ModeleAnalyse $modeleAnalyse): void |
34 | { |
35 | $this->modeleAnalyse = $modeleAnalyse; |
36 | } |
37 | } |