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
|
|
|
use DERHANSEN\SfEventMgt\Domain\Model\CustomNotificationLog; |
15
|
|
|
use DERHANSEN\SfEventMgt\Domain\Model\Dto\CustomNotification; |
16
|
|
|
use DERHANSEN\SfEventMgt\Domain\Model\Event; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* This event is triggered before a custom notification log entry is saved |
20
|
|
|
*/ |
21
|
|
|
final class ModifyCustomNotificationLogEvent |
22
|
|
|
{ |
23
|
|
|
protected CustomNotificationLog $customNotificationLog; |
24
|
|
|
protected Event $event; |
25
|
|
|
protected string $details; |
26
|
|
|
protected CustomNotification $customNotification; |
27
|
|
|
|
28
|
|
|
public function __construct(CustomNotificationLog $customNotificationLog, Event $event, string $details, CustomNotification $customNotification) |
29
|
|
|
{ |
30
|
|
|
$this->customNotificationLog = $customNotificationLog; |
31
|
|
|
$this->event = $event; |
32
|
|
|
$this->details = $details; |
33
|
|
|
$this->customNotification = $customNotification; |
34
|
|
|
} |
35
|
|
|
|
36
|
|
|
public function getCustomNotificationLog(): CustomNotificationLog |
37
|
|
|
{ |
38
|
|
|
return $this->customNotificationLog; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
public function setCustomNotificationLog(CustomNotificationLog $customNotificationLog): void |
42
|
|
|
{ |
43
|
|
|
$this->customNotificationLog = $customNotificationLog; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
public function getEvent(): Event |
47
|
|
|
{ |
48
|
|
|
return $this->event; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
public function getDetails(): string |
52
|
|
|
{ |
53
|
|
|
return $this->details; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
public function getCustomNotification(): CustomNotification |
57
|
|
|
{ |
58
|
|
|
return $this->getCustomNotification(); |
59
|
|
|
} |
60
|
|
|
} |
61
|
|
|
|