Passed
Push — main ( 52a7ec...5410b3 )
by Torben
03:32
created

AfterAdminMessageSentEvent   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 52
rs 10
c 0
b 0
f 0
wmc 9
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\NotificationService;
16
use Psr\Http\Message\ServerRequestInterface;
17
18
/**
19
 * This event is triggered after a admin message has been sent
20
 */
21
final readonly class AfterAdminMessageSentEvent
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_READONLY, expecting T_CLASS on line 21 at column 6
Loading history...
22
{
23
    public function __construct(
24
        private Registration $registration,
25
        private string $body,
26
        private string $subject,
27
        private array $attachments,
28
        private string $senderName,
29
        private string $senderEmail,
30
        private int $messageType,
31
        private NotificationService $notificationService,
32
        private ServerRequestInterface $request
33
    ) {
34
    }
35
36
    public function getRegistration(): Registration
37
    {
38
        return $this->registration;
39
    }
40
41
    public function getBody(): string
42
    {
43
        return $this->body;
44
    }
45
46
    public function getSubject(): string
47
    {
48
        return $this->subject;
49
    }
50
51
    public function getAttachments(): array
52
    {
53
        return $this->attachments;
54
    }
55
56
    public function getSenderName(): string
57
    {
58
        return $this->senderName;
59
    }
60
61
    public function getSenderEmail(): string
62
    {
63
        return $this->senderEmail;
64
    }
65
66
    public function getNotificationService(): NotificationService
67
    {
68
        return $this->notificationService;
69
    }
70
71
    public function getMessageType(): int
72
    {
73
        return $this->messageType;
74
    }
75
76
    public function getRequest(): ServerRequestInterface
77
    {
78
        return $this->request;
79
    }
80
}
81