Completed
Pull Request — master (#264)
by Luc
04:21
created

CopyEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 3
1
<?php
2
3
namespace CultuurNet\UDB3\Event\Commands;
4
5
use CultuurNet\UDB3\CalendarInterface;
6
use CultuurNet\UDB3\Offer\Commands\AbstractCommand;
7
8
class CopyEvent extends AbstractCommand
9
{
10
    /**
11
     * @var string
12
     */
13
    private $originalEventId;
14
15
    /**
16
     * @var CalendarInterface
17
     */
18
    private $calendar;
19
20
    /**
21
     * CopyEvent constructor.
22
     * @param string $eventId
23
     * @param string $originalEventId
24
     * @param CalendarInterface $calendar
25
     */
26
    public function __construct(
27
        $eventId,
28
        $originalEventId,
29
        CalendarInterface $calendar
30
    ) {
31
        parent::__construct($eventId);
32
33
        $this->originalEventId = $originalEventId;
34
        $this->calendar = $calendar;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getOriginalEventId()
41
    {
42
        return $this->originalEventId;
43
    }
44
45
    /**
46
     * @return CalendarInterface
47
     */
48
    public function getCalendar()
49
    {
50
        return $this->calendar;
51
    }
52
}
53