NotificationEvent::setMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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