UpdateDelegateInformation   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 29
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
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
}