Completed
Pull Request — master (#1)
by Luc
06:51 queued 03:58
created

Question   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 102
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 102
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getAnswers() 0 3 1
A getLanguage() 0 3 1
A __construct() 0 14 1
A getFeedback() 0 3 1
A getId() 0 3 1
A getYear() 0 3 1
A getQuestionText() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace VSV\GVQ_API\Question;
4
5
use Ramsey\Uuid\UuidInterface;
6
7
class Question
8
{
9
    /**
10
     * @var UuidInterface
11
     */
12
    private $id;
13
14
    /**
15
     * @var Language
16
     */
17
    private $language;
18
19
    /**
20
     * @var Year
21
     */
22
    private $year;
23
24
    /**
25
     * @var NotEmptyString
26
     */
27
    private $questionText;
28
29
    /**
30
     * @var Answers
31
     */
32
    private $answers;
33
34
    /**
35
     * @var NotEmptyString
36
     */
37
    private $feedback;
38
39
    /**
40
     * @param UuidInterface $id
41
     * @param Language $language
42
     * @param Year $year
43
     * @param NotEmptyString $questionText
44
     * @param Answers $answers
45
     * @param NotEmptyString $feedback
46
     */
47
    public function __construct(
48
        UuidInterface $id,
49
        Language $language,
50
        Year $year,
51
        NotEmptyString $questionText,
52
        Answers $answers,
53
        NotEmptyString $feedback
54
    ) {
55
        $this->id = $id;
56
        $this->language = $language;
57
        $this->year = $year;
58
        $this->questionText = $questionText;
59
        $this->answers = $answers;
60
        $this->feedback = $feedback;
61
    }
62
63
    /**
64
     * @return UuidInterface
65
     */
66
    public function getId(): UuidInterface
67
    {
68
        return $this->id;
69
    }
70
71
    /**
72
     * @return Language
73
     */
74
    public function getLanguage(): Language
75
    {
76
        return $this->language;
77
    }
78
79
    /**
80
     * @return Year
81
     */
82
    public function getYear(): Year
83
    {
84
        return $this->year;
85
    }
86
87
    /**
88
     * @return NotEmptyString
89
     */
90
    public function getQuestionText(): NotEmptyString
91
    {
92
        return $this->questionText;
93
    }
94
95
    /**
96
     * @return Answers
97
     */
98
    public function getAnswers(): Answers
99
    {
100
        return $this->answers;
101
    }
102
103
    /**
104
     * @return NotEmptyString
105
     */
106
    public function getFeedback(): NotEmptyString
107
    {
108
        return $this->feedback;
109
    }
110
}
111