Passed
Branch tmp/scrutinizer-notification-d... (24bdcd)
by Romain
05:04
created

EntityLogNotification::getDefinitionIdentifier()   A

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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * Copyright (C) 2018
5
 * Nathan Boiron <[email protected]>
6
 * Romain Canon <[email protected]>
7
 *
8
 * This file is part of the TYPO3 NotiZ project.
9
 * It is free software; you can redistribute it and/or modify it
10
 * under the terms of the GNU General Public License, either
11
 * version 3 of the License, or any later version.
12
 *
13
 * For the full copyright and license information, see:
14
 * http://www.gnu.org/licenses/gpl-3.0.html
15
 */
16
17
namespace CuyZ\Notiz\Domain\Notification\Log\Application\EntityLog;
18
19
use CuyZ\Notiz\Domain\Notification\EntityNotification;
20
use CuyZ\Notiz\Domain\Notification\Log\Application\EntityLog\Processor\EntityLogNotificationProcessor;
21
use CuyZ\Notiz\Domain\Notification\Log\LogNotification;
22
23
class EntityLogNotification extends EntityNotification implements LogNotification
24
{
25
    /**
26
     * @var string
27
     */
28
    protected $message;
29
30
    /**
31
     * @var string
32
     */
33
    protected $level;
34
35
    /**
36
     * @return string
37
     */
38
    public function getMessage()
39
    {
40
        return $this->message;
41
    }
42
43
    /**
44
     * @param string $message
45
     */
46
    public function setMessage($message)
47
    {
48
        $this->message = $message;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getLevel()
55
    {
56
        return $this->level;
57
    }
58
59
    /**
60
     * @param string $level
61
     */
62
    public function setLevel($level)
63
    {
64
        $this->level = $level;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public static function getProcessorClassName()
71
    {
72
        return EntityLogNotificationProcessor::class;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public static function getDefinitionIdentifier()
79
    {
80
        return 'entityLog';
81
    }
82
}
83