NotificationEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 4 1
A setMessage() 0 4 1
1
<?php
2
3
namespace JK\Sam\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class NotificationEvent extends Event
0 ignored issues
show
Deprecated Code introduced by
The class Symfony\Component\EventDispatcher\Event has been deprecated with message: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
8
{
9
    const NAME = 'jk.assets.notification';
10
11
    /**
12
     * @var string
13
     */
14
    protected $message;
15
16
    /**
17
     * @return string
18
     */
19 1
    public function getMessage()
20
    {
21 1
        return $this->message;
22
    }
23
24
    /**
25
     * @param string $message
26
     */
27 1
    public function setMessage($message)
28
    {
29 1
        $this->message = $message;
30 1
    }
31
}
32