UpdateDelegateInformation::getDelegateInfo()   A
last analyzed

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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace ConferenceTools\Checkin\Domain\Command\Delegate;
4
5
use Carnage\Cqrs\Command\CommandInterface;
6
use ConferenceTools\Checkin\Domain\ValueObject\DelegateInfo;
7
use JMS\Serializer\Annotation as JMS;
8
9
class UpdateDelegateInformation implements CommandInterface
10
{
11
    /**
12
     * @var DelegateInfo
13
     * @JMS\Type("ConferenceTools\Checkin\Domain\ValueObject\DelegateInfo")
14
     */
15
    private $delegateInfo;
16
    /**
17
     * @var string
18
     * @JMS\Type("string")
19
     */
20
    private $delegateId;
21
22
    public function __construct(
23
        string $delegateId,
24
        DelegateInfo $delegateInfo
25
    ) {
26
        $this->delegateInfo = $delegateInfo;
27
        $this->delegateId = $delegateId;
28
    }
29
30
    public function getDelegateInfo(): DelegateInfo
31
    {
32
        return $this->delegateInfo;
33
    }
34
35
    public function getDelegateId(): string
36
    {
37
        return $this->delegateId;
38
    }
39
}