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

UpdateDelegateInformation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 27
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getDelegateId() 0 3 1
A getDelegateInfo() 0 3 1
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
}