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

ModifyDownloadRegistrationCsvEvent   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

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

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getSettings() 0 3 1
A __construct() 0 6 1
A getCsvContent() 0 3 1
A setCsvContent() 0 3 1
A getEventUid() 0 3 1
A setDownloadFilename() 0 3 1
A getDownloadFilename() 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
/**
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