DelegateInfo::getLastName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

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
ccs 2
cts 2
cp 1
crap 1
1
<?php
2
3
namespace ConferenceTools\Checkin\Domain\ValueObject;
4
use JMS\Serializer\Annotation as JMS;
5
6
final class DelegateInfo
7
{
8
    /**
9
     * @var string
10
     * @JMS\Type("string")
11
     */
12
    private $firstName;
13
    /**
14
     * @var string
15
     * @JMS\Type("string")
16
     */
17
    private $lastName;
18
    /**
19
     * @var string
20
     * @JMS\Type("string")
21
     */
22
    private $email;
23
24 11
    public function __construct(string $firstName, string $lastName, string $email)
25
    {
26 11
        $this->firstName = $firstName;
27 11
        $this->lastName = $lastName;
28 11
        $this->email = $email;
29 11
    }
30
31 5
    public function getFirstName(): string
32
    {
33 5
        return $this->firstName;
34
    }
35
36 5
    public function getLastName(): string
37
    {
38 5
        return $this->lastName;
39
    }
40
41 5
    public function getEmail(): string
42
    {
43 5
        return $this->email;
44
    }
45
}
46