WaitlistMoveUpEvent   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 33
rs 10
c 1
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getProcessDefaultMoveUp() 0 3 1
A setProcessDefaultMoveUp() 0 3 1
A getRequest() 0 3 1
A getEvent() 0 3 1
A __construct() 0 6 1
A getEventController() 0 3 1
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
use Psr\Http\Message\ServerRequestInterface;
17
18
/**
19
 * This event is triggered after a registration has been cancelled
20
 */
21
final class WaitlistMoveUpEvent
22
{
23
    public function __construct(
24
        private readonly Event $event,
25
        private readonly EventController $eventController,
26
        private readonly ServerRequestInterface $request,
27
        private bool $processDefaultMoveUp = true
28
    ) {
29
    }
30
31
    public function getEvent(): Event
32
    {
33
        return $this->event;
34
    }
35
36
    public function getEventController(): EventController
37
    {
38
        return $this->eventController;
39
    }
40
41
    public function getProcessDefaultMoveUp(): bool
42
    {
43
        return $this->processDefaultMoveUp;
44
    }
45
46
    public function setProcessDefaultMoveUp(bool $processDefaultMoveUp): void
47
    {
48
        $this->processDefaultMoveUp = $processDefaultMoveUp;
49
    }
50
51
    public function getRequest(): ServerRequestInterface
52
    {
53
        return $this->request;
54
    }
55
}
56