Passed
Push — master ( 58c4da...af9933 )
by Torben
04:48
created

CustomNotificationLog   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 158
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 19
dl 0
loc 158
ccs 25
cts 25
cp 1
rs 10
c 0
b 0
f 0
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A setEmailsSent() 0 3 1
A getDetails() 0 3 1
A getEmailsSent() 0 3 1
A getCruserId() 0 3 1
A setDetails() 0 3 1
A getMessage() 0 3 1
A getEvent() 0 3 1
A setCruserId() 0 3 1
A setMessage() 0 3 1
A getTstamp() 0 3 1
A setEvent() 0 3 1
A setTstamp() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Extension "sf_event_mgt" for TYPO3 CMS.
5
 *
6
 * For the full copyright and license information, please read the
7
 * LICENSE.txt file that was distributed with this source code.
8
 */
9
10
namespace DERHANSEN\SfEventMgt\Domain\Model;
11
12
/**
13
 * CustomNotificationLog
14
 */
15
class CustomNotificationLog extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
16
{
17
    /**
18
     * Event
19
     *
20
     * @var \DERHANSEN\SfEventMgt\Domain\Model\Event
21
     */
22
    protected $event;
23
24
    /**
25
     * Details
26
     *
27
     * @var string
28
     */
29
    protected $details;
30
31
    /**
32
     * Message
33
     *
34
     * @var string
35
     */
36
    protected $message = '';
37
38
    /**
39
     * E-Mails sent
40
     *
41
     * @var int
42
     */
43
    protected $emailsSent;
44
45
    /**
46
     * Timestamp
47
     *
48
     * @var \DateTime
49
     */
50
    protected $tstamp;
51
52
    /**
53
     * Backend user
54
     *
55
     * @var \TYPO3\CMS\Extbase\Domain\Model\BackendUser
56
     */
57
    protected $cruserId;
58
59
    /**
60
     * Sets the details
61
     *
62
     * @param string $details Details
63
     */
64
    public function setDetails($details)
65
    {
66
        $this->details = $details;
67 4
    }
68
69 4
    /**
70 4
     * Returns the details
71
     *
72
     * @return string
73
     */
74
    public function getDetails()
75
    {
76
        return $this->details;
77 2
    }
78
79 2
    /**
80
     * @return string
81
     */
82
    public function getMessage(): string
83
    {
84
        return $this->message;
85
    }
86
87
    /**
88
     * @param string $message
89 4
     */
90
    public function setMessage(string $message): void
91 4
    {
92 4
        $this->message = $message;
93
    }
94
95
    /**
96
     * Sets the event
97
     *
98
     * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event Event
99 4
     */
100
    public function setEvent(Event $event)
101 4
    {
102
        $this->event = $event;
103
    }
104
105
    /**
106
     * Returns the event
107
     *
108
     * @return \DERHANSEN\SfEventMgt\Domain\Model\Event
109
     */
110
    public function getEvent()
111 4
    {
112
        return $this->event;
113 4
    }
114 4
115
    /**
116
     * Sets emailsSent
117
     *
118
     * @param int $emailsSent E-Mails sent
119
     */
120
    public function setEmailsSent($emailsSent)
121 2
    {
122
        $this->emailsSent = $emailsSent;
123 2
    }
124
125
    /**
126
     * Returns emailsSent
127
     *
128
     * @return int
129
     */
130
    public function getEmailsSent()
131 2
    {
132
        return $this->emailsSent;
133 2
    }
134
135
    /**
136
     * Returns tstamp
137
     *
138
     * @return \DateTime
139
     */
140
    public function getTstamp()
141
    {
142
        return $this->tstamp;
143 2
    }
144
145 2
    /**
146 2
     * Sets the timestamp
147
     *
148
     * @param \DateTime $tstamp Tstamp
149
     */
150
    public function setTstamp(\DateTime $tstamp)
151
    {
152
        $this->tstamp = $tstamp;
153 2
    }
154
155 2
    /**
156
     * Returns the backend user
157
     *
158
     * @return \TYPO3\CMS\Extbase\Domain\Model\BackendUser
159
     */
160
    public function getCruserId()
161
    {
162
        return $this->cruserId;
163
    }
164
165 4
    /**
166
     * Sets the backend user
167 4
     *
168 4
     * @param \TYPO3\CMS\Extbase\Domain\Model\BackendUser $cruserId CruserId
169
     */
170
    public function setCruserId($cruserId)
171
    {
172
        $this->cruserId = $cruserId;
173
    }
174
}
175