EntityLogNotification   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 14
c 1
b 0
f 0
dl 0
loc 63
rs 10
wmc 6

6 Methods

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