Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 10
CRAP
0.00% covered (danger)
0.00%
0 / 1
AnalyseMesureProtection
0.00% covered (danger)
0.00%
0 / 11
0.00% covered (danger)
0.00%
0 / 10
110
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
 getAnalyseImpact
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setAnalyseImpact
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getReponse
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setReponse
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getScenariosMenaces
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setScenariosMenaces
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 addScenarioMenace
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getOriginId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setOriginId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3declare(strict_types=1);
4
5namespace App\Domain\AIPD\Model;
6
7use Doctrine\Common\Collections\ArrayCollection;
8
9class AnalyseMesureProtection extends AbstractMesureProtection
10{
11    private AnalyseImpact $analyseImpact;
12
13    private ?string $reponse;
14
15    private iterable $scenariosMenaces;
16
17    private string $originId;
18
19    public function __construct()
20    {
21        parent::__construct();
22        $this->scenariosMenaces = new ArrayCollection();
23    }
24
25    public function getAnalyseImpact(): AnalyseImpact
26    {
27        return $this->analyseImpact;
28    }
29
30    public function setAnalyseImpact(AnalyseImpact $analyseImpact): void
31    {
32        $this->analyseImpact = $analyseImpact;
33    }
34
35    public function getReponse(): ?string
36    {
37        return $this->reponse;
38    }
39
40    public function setReponse(?string $reponse): void
41    {
42        $this->reponse = $reponse;
43    }
44
45    public function getScenariosMenaces(): iterable
46    {
47        return $this->scenariosMenaces;
48    }
49
50    public function setScenariosMenaces(iterable $scenariosMenaces): void
51    {
52        $this->scenariosMenaces = $scenariosMenaces;
53    }
54
55    public function addScenarioMenace(AnalyseScenarioMenace $scenarioMenace)
56    {
57        $this->scenariosMenaces[] = $scenarioMenace;
58    }
59
60    public function getOriginId(): string
61    {
62        return $this->originId;
63    }
64
65    public function setOriginId(string $originId): void
66    {
67        $this->originId = $originId;
68    }
69}