Passed
Push — 6.x ( a8b983...91d5aa )
by Torben
18:59 queued 11:21
created

ModifyUserMessageAttachmentsEvent::getSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
17
/**
18
 * This event should be used to modify the attachments of a user message. Use the $type variable to distinguish
19
 * between the different types of messages
20
 */
21
final class ModifyUserMessageAttachmentsEvent
22
{
23
    private array $attachments;
24
    private Registration $registration;
25
    private int $type;
26
    private array $settings;
27
    private NotificationService $notificationService;
28
29
    public function __construct(
30
        array $attachments,
31
        Registration $registration,
32
        int $type,
33
        array $settings,
34
        NotificationService $notificationService
35
    ) {
36
        $this->attachments = $attachments;
37
        $this->registration = $registration;
38
        $this->type = $type;
39
        $this->settings = $settings;
40
        $this->notificationService = $notificationService;
41
    }
42
43
    public function getAttachments(): array
44
    {
45
        return $this->attachments;
46
    }
47
48
    public function getRegistration(): Registration
49
    {
50
        return $this->registration;
51
    }
52
53
    public function getType(): int
54
    {
55
        return $this->type;
56
    }
57
58
    public function getSettings(): array
59
    {
60
        return $this->settings;
61
    }
62
63
    public function getNotificationService(): NotificationService
64
    {
65
        return $this->notificationService;
66
    }
67
68
    public function setAttachments(array $attachments): void
69
    {
70
        $this->attachments = $attachments;
71
    }
72
}
73