Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
50.00% covered (danger)
50.00%
5 / 10
44.44% covered (danger)
44.44%
4 / 9
CRAP
0.00% covered (danger)
0.00%
0 / 1
Question
50.00% covered (danger)
50.00%
5 / 10
44.44% covered (danger)
44.44%
4 / 9
19.12
0.00% covered (danger)
0.00%
0 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getId
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getNom
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setNom
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getProcessus
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setProcessus
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getReponses
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getPosition
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 setPosition
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace App\Domain\Registry\Model\ConformiteOrganisation;
4
5use Doctrine\Common\Collections\ArrayCollection;
6use Ramsey\Uuid\Uuid;
7use Ramsey\Uuid\UuidInterface;
8
9class Question
10{
11    /**
12     * @var UuidInterface
13     */
14    private $id;
15
16    /**
17     * @var string|null
18     */
19    private $nom;
20
21    /**
22     * @var Processus|null
23     */
24    private $processus;
25
26    /**
27     * @var iterable
28     */
29    private $reponses;
30
31    /**
32     * @var int
33     */
34    private $position;
35
36    /**
37     * Question constructor.
38     *
39     * @throws \Exception
40     */
41    public function __construct()
42    {
43        $this->id       = Uuid::uuid4();
44        $this->reponses = new ArrayCollection();
45    }
46
47    public function getId(): UuidInterface
48    {
49        return $this->id;
50    }
51
52    public function getNom(): ?string
53    {
54        return $this->nom;
55    }
56
57    public function setNom(?string $nom): void
58    {
59        $this->nom = $nom;
60    }
61
62    public function getProcessus(): ?Processus
63    {
64        return $this->processus;
65    }
66
67    public function setProcessus(?Processus $processus): void
68    {
69        $this->processus = $processus;
70    }
71
72    public function getReponses(): iterable
73    {
74        return $this->reponses;
75    }
76
77    public function getPosition(): int
78    {
79        return $this->position;
80    }
81
82    public function setPosition(int $position): void
83    {
84        $this->position = $position;
85    }
86}