Completed
Pull Request — master (#443)
by
unknown
03:08
created

ImportSingleIcalEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace HDNET\Calendarize\Event;
6
7
use HDNET\Calendarize\Ical\ICalEvent;
8
9
final class ImportSingleIcalEvent
10
{
11
12
    /**
13
     * @var ICalEvent
14
     */
15
    private $event;
16
17
    /**
18
     * @var int
19
     */
20
    private $pid;
21
22
    /**
23
     * ImportSingleEvent constructor.
24
     * @param ICalEvent $event
25
     * @param int $pid
26
     */
27
    public function __construct(ICalEvent $event, int $pid)
28
    {
29
        $this->event = $event;
30
        $this->pid = $pid;
31
    }
32
33
    /**
34
     * @return ICalEvent
35
     */
36
    public function getEvent(): ICalEvent
37
    {
38
        return $this->event;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getPid(): int
45
    {
46
        return $this->pid;
47
    }
48
}
49