Completed
Push — master ( 17edcb...7372de )
by Torben
06:23
created

AfterRegistrationMovedFromWaitlist   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getRegistration() 0 4 1
A getRegistrationService() 0 4 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\Domain\Model\Registration;
15
use DERHANSEN\SfEventMgt\Service\RegistrationService;
16
17
/**
18
 * This event is triggered after a registration moved from the waitlist
19
 */
20
final class AfterRegistrationMovedFromWaitlist
21
{
22
    /**
23
     * @var Registration
24
     */
25
    private $registration;
26
27
    /**
28
     * @var RegistrationService
29
     */
30
    private $registrationService;
31
32
    public function __construct(Registration $registration, RegistrationService $registrationService)
33
    {
34
        $this->registration = $registration;
35
        $this->registrationService = $registrationService;
36
    }
37
38
    /**
39
     * @return Registration
40
     */
41
    public function getRegistration(): Registration
42
    {
43
        return $this->registration;
44
    }
45
46
    /**
47
     * @return RegistrationService
48
     */
49
    public function getRegistrationService(): RegistrationService
50
    {
51
        return $this->registrationService;
52
    }
53
}
54