DelegateInformationUpdated::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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