Completed
Push — 4.x ( a36c9f...e4382f )
by Torben
02:26
created

CustomNotification   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 90
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 90
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getTemplate() 0 4 1
A setTemplate() 0 4 1
A getAdditionalMessage() 0 4 1
A setAdditionalMessage() 0 4 1
A getRecipients() 0 4 1
A setRecipients() 0 4 1
A getOverwriteSubject() 0 4 1
A setOverwriteSubject() 0 4 1
1
<?php
2
namespace DERHANSEN\SfEventMgt\Domain\Model\Dto;
3
4
/*
5
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
6
 *
7
 * For the full copyright and license information, please read the
8
 * LICENSE.txt file that was distributed with this source code.
9
 */
10
11
/**
12
 * Custom notification DTO
13
 */
14
class CustomNotification extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
15
{
16
    const RECIPIENTS_ALL = 0;
17
    const RECIPIENTS_CONFIRMED = 1;
18
    const RECIPIENTS_UNCONFIRMED = 2;
19
20
    /**
21
     * @var string
22
     */
23
    protected $template = '';
24
25
    /**
26
     * @var int
27
     */
28
    protected $recipients = self::RECIPIENTS_CONFIRMED;
29
30
    /**
31
     * @var string
32
     */
33
    protected $overwriteSubject = '';
34
35
    /**
36
     * @var string
37
     */
38
    protected $additionalMessage = '';
39
40
    /**
41
     * @return string
42
     */
43
    public function getTemplate(): string
44
    {
45
        return $this->template;
46
    }
47
48
    /**
49
     * @param string $template
50
     */
51
    public function setTemplate(string $template)
52
    {
53
        $this->template = $template;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getAdditionalMessage(): string
60
    {
61
        return $this->additionalMessage;
62
    }
63
64
    /**
65
     * @param string $additionalMessage
66
     */
67
    public function setAdditionalMessage(string $additionalMessage)
68
    {
69
        $this->additionalMessage = $additionalMessage;
70
    }
71
72
    /**
73
     * @return int
74
     */
75
    public function getRecipients(): int
76
    {
77
        return $this->recipients;
78
    }
79
80
    /**
81
     * @param int $recipients
82
     */
83
    public function setRecipients(int $recipients)
84
    {
85
        $this->recipients = $recipients;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function getOverwriteSubject(): string
92
    {
93
        return $this->overwriteSubject;
94
    }
95
96
    /**
97
     * @param string $overwriteSubject
98
     */
99
    public function setOverwriteSubject(string $overwriteSubject)
100
    {
101
        $this->overwriteSubject = $overwriteSubject;
102
    }
103
}
104