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

DelegateQuestion   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 39
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getHandle() 0 3 1
A getAnswer() 0 3 1
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