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

DelegateCheckedIn   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getId() 0 3 1
1
<?php
2
3
namespace ConferenceTools\Checkin\Domain\Event\Delegate;
4
5
use Carnage\Cqrs\Event\EventInterface;
6
use JMS\Serializer\Annotation as JMS;
7
8
class DelegateCheckedIn implements EventInterface
9
{
10
    /**
11
     * @var string
12
     * @JMS\Type("string")
13
     */
14
    private $id;
15
16
    public function __construct(string $id)
17
    {
18
        $this->id = $id;
19
    }
20
21
    public function getId(): string
22
    {
23
        return $this->id;
24
    }
25
}
26