Passed
Push — main ( 7c0335...555ab4 )
by Torben
03:29
created

ModifyDownloadRegistrationCsvEvent::getEventUid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
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
/**
15
 * This event is triggered before the registration CSV download is initiated. Listerners can use this event
16
 * to set the CSV content and the CSV filename
17
 */
18
final class ModifyDownloadRegistrationCsvEvent
19
{
20
    public function __construct(
21
        protected string $csvContent,
22
        protected string $downloadFilename,
23
        protected readonly int $eventUid,
24
        protected readonly array $settings
25
    ) {
26
    }
27
28
    public function getCsvContent(): string
29
    {
30
        return $this->csvContent;
31
    }
32
33
    public function setCsvContent(string $csvContent): void
34
    {
35
        $this->csvContent = $csvContent;
36
    }
37
38
    public function getDownloadFilename(): string
39
    {
40
        return $this->downloadFilename;
41
    }
42
43
    public function setDownloadFilename(string $downloadFilename): void
44
    {
45
        $this->downloadFilename = $downloadFilename;
46
    }
47
48
    public function getEventUid(): int
49
    {
50
        return $this->eventUid;
51
    }
52
53
    public function getSettings(): array
54
    {
55
        return $this->settings;
56
    }
57
}
58