DelegateInfo   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 38
rs 10
ccs 11
cts 11
cp 1
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFirstName() 0 3 1
A getEmail() 0 3 1
A getLastName() 0 3 1
A __construct() 0 5 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