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

DelegateCheckedIn::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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