Test Failed
Push — master ( 4321c6...27997e )
by Constantin
05:35
created

ScheduledEventWithMetadata::getEventWithMetaData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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
    public function __construct(
20
        $eventId,
21
        EventWithMetaData $eventWithMetaData
22
    )
23
    {
24
        $this->eventId = $eventId;
25
        $this->eventWithMetaData = $eventWithMetaData;
26
    }
27
28
    public function getEventId()
29
    {
30
        return $this->eventId;
31
    }
32
33
    /**
34
     * @return EventWithMetaData
35
     */
36
    public function getEventWithMetaData(): EventWithMetaData
37
    {
38
        return $this->eventWithMetaData;
39
    }
40
}