Completed
Push — feature/780-waitlist-move-up ( 47583b...6f7e11 )
by Torben
06:35
created

WaitlistMoveUpEvent::getEvent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
7
 *
8
 * For the full copyright and license information, please read the
9
 * LICENSE.txt file that was distributed with this source code.
10
 */
11
12
namespace DERHANSEN\SfEventMgt\Event;
13
14
use DERHANSEN\SfEventMgt\Controller\EventController;
15
use DERHANSEN\SfEventMgt\Domain\Model\Event;
16
17
/**
18
 * This event is triggered after a registration has been cancelled
19
 */
20
final class WaitlistMoveUpEvent
21
{
22
    /**
23
     * @var Event
24
     */
25
    private $event;
26
27
    /**
28
     * @var EventController
29
     */
30
    private $eventController;
31
32
    /**
33
     * @var bool
34
     */
35
    private $processDefaultMoveUp;
36
37
    public function __construct(Event $event, EventController $eventController, bool $processDefaultMoveUp = true)
38
    {
39
        $this->event = $event;
40
        $this->eventController = $eventController;
41
        $this->processDefaultMoveUp = $processDefaultMoveUp;
42
    }
43
44
    /**
45
     * @return Event
46
     */
47
    public function getEvent(): Event
48
    {
49
        return $this->event;
50
    }
51
52
    /**
53
     * @return EventController
54
     */
55
    public function getEventController(): EventController
56
    {
57
        return $this->eventController;
58
    }
59
60
    /**
61
     * @return bool
62
     */
63
    public function getProcessDefaultMoveUp(): bool
64
    {
65
        return $this->processDefaultMoveUp;
66
    }
67
68
    /**
69
     * @param bool $processDefaultMoveUp
70
     */
71
    public function setProcessDefaultMoveUp(bool $processDefaultMoveUp): void
72
    {
73
        $this->processDefaultMoveUp = $processDefaultMoveUp;
74
    }
75
}
76