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

ModifyCustomNotificationLogEvent::getDetails()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
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\Event;
13
14
use DERHANSEN\SfEventMgt\Domain\Model\CustomNotificationLog;
15
use DERHANSEN\SfEventMgt\Domain\Model\Event;
16
17
/**
18
 * This event is triggered before a custom notification log entry is saved
19
 */
20
final class ModifyCustomNotificationLogEvent
21
{
22
    /**
23
     * @var CustomNotificationLog
24
     */
25
    protected $customNotificationLog;
26
27
    /**
28
     * @var Event
29
     */
30
    protected $event;
31
32
    /**
33
     * @var string
34
     */
35
    protected $details;
36
37
    public function __construct(CustomNotificationLog $customNotificationLog, Event $event, string $details)
38
    {
39
        $this->customNotificationLog = $customNotificationLog;
40
        $this->event = $event;
41
        $this->details = $details;
42
    }
43
44
    /**
45
     * @return CustomNotificationLog
46
     */
47
    public function getCustomNotificationLog(): CustomNotificationLog
48
    {
49
        return $this->customNotificationLog;
50
    }
51
52
    /**
53
     * @param CustomNotificationLog $customNotificationLog
54
     */
55
    public function setCustomNotificationLog(CustomNotificationLog $customNotificationLog): void
56
    {
57
        $this->customNotificationLog = $customNotificationLog;
58
    }
59
60
    /**
61
     * @return Event
62
     */
63
    public function getEvent(): Event
64
    {
65
        return $this->event;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getDetails(): string
72
    {
73
        return $this->details;
74
    }
75
}
76