CustomNotification::setOverwriteSubject()   A
last analyzed

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
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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\Domain\Model\Dto;
13
14
class CustomNotification
15
{
16
    public const RECIPIENTS_ALL = 0;
17
    public const RECIPIENTS_CONFIRMED = 1;
18
    public const RECIPIENTS_UNCONFIRMED = 2;
19
    public const RECIPIENTS_WAITLIST_CONFIRMED = 3;
20
    public const RECIPIENTS_WAITLIST_UNCONFIRMED = 4;
21
22
    protected string $template = '';
23
    protected int $recipients = self::RECIPIENTS_CONFIRMED;
24
    protected string $overwriteSubject = '';
25
    protected string $additionalMessage = '';
26
27
    public function getTemplate(): string
28
    {
29
        return $this->template;
30
    }
31
32
    public function setTemplate(string $template): void
33
    {
34
        $this->template = $template;
35
    }
36
37
    public function getAdditionalMessage(): string
38
    {
39
        return $this->additionalMessage;
40
    }
41
42
    public function setAdditionalMessage(string $additionalMessage): void
43
    {
44
        $this->additionalMessage = $additionalMessage;
45
    }
46
47
    public function getRecipients(): int
48
    {
49
        return $this->recipients;
50
    }
51
52
    public function setRecipients(int $recipients): void
53
    {
54
        $this->recipients = $recipients;
55
    }
56
57
    public function getOverwriteSubject(): string
58
    {
59
        return $this->overwriteSubject;
60
    }
61
62
    public function setOverwriteSubject(string $overwriteSubject): void
63
    {
64
        $this->overwriteSubject = $overwriteSubject;
65
    }
66
}
67