Completed
Pull Request — master (#1)
by Luc
07:00 queued 04:06
created

Question::getYear()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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