Passed
Push — master ( 4327f5...645913 )
by Chris
03:00
created

UpdateDelegateInformation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
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 6
rs 9.4285
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
8
class UpdateDelegateInformation implements CommandInterface
9
{
10
    /**
11
     * @var DelegateInfo
12
     */
13
    private $delegateInfo;
14
    /**
15
     * @var string
16
     */
17
    private $delegateId;
18
19
    public function __construct(
20
        string $delegateId,
21
        DelegateInfo $delegateInfo
22
    ) {
23
        $this->delegateInfo = $delegateInfo;
24
        $this->delegateId = $delegateId;
25
    }
26
27
    public function getDelegateInfo(): DelegateInfo
28
    {
29
        return $this->delegateInfo;
30
    }
31
32
    public function getDelegateId(): string
33
    {
34
        return $this->delegateId;
35
    }
36
}