ScheduledEventWithMetadata::getEventId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/******************************************************************************
3
 * Copyright (c) 2016 Constantin Galbenu <[email protected]>             *
4
 ******************************************************************************/
5
6
namespace Gica\Cqrs\Scheduling;
7
8
9
use Gica\Cqrs\Event\EventWithMetaData;
10
11
class ScheduledEventWithMetadata
12
{
13
    private $eventId;
14
    /**
15
     * @var EventWithMetaData
16
     */
17
    private $eventWithMetaData;
18
19 2
    public function __construct(
20
        $eventId,
21
        EventWithMetaData $eventWithMetaData
22
    )
23
    {
24 2
        $this->eventId = $eventId;
25 2
        $this->eventWithMetaData = $eventWithMetaData;
26 2
    }
27
28 1
    public function getEventId()
29
    {
30 1
        return $this->eventId;
31
    }
32
33
    /**
34
     * @return EventWithMetaData
35
     */
36 2
    public function getEventWithMetaData(): EventWithMetaData
37
    {
38 2
        return $this->eventWithMetaData;
39
    }
40
}