Passed
Push — master ( c9440f...9adbab )
by Chris
02:59 queued 47s
created

DelegateQuestion::getAnswer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace ConferenceTools\Tickets\Domain\ValueObject;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
class DelegateQuestion
8
{
9
    /**
10
     * @var string
11
     * @JMS\Type("string")
12
     */
13
    private $handle;
14
15
    /**
16
     * @var string
17
     * @JMS\Type("string")
18
     */
19
    private $answer;
20
21
    /**
22
     * DelegateQuestion constructor.
23
     * @param $handle
24
     * @param $answer
25
     */
26
    public function __construct(string $handle, string $answer)
27
    {
28
        $this->handle = $handle;
29
        $this->answer = $answer;
30
    }
31
32
    /**
33
     * @return string
34
     */
35
    public function getHandle(): string
36
    {
37
        return $this->handle;
38
    }
39
40
    /**
41
     * @return string
42
     */
43
    public function getAnswer(): string
44
    {
45
        return $this->answer;
46
    }
47
}
48