NotificationFailedEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getNotification() 0 4 1
A getData() 0 4 1
1
<?php
2
3
namespace IrishDan\NotificationBundle\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class NotificationFailedEvent extends Event
8
{
9
    const NAME = 'notification.failed';
10
    public $notification;
11
    public $data = [];
12
13
    public function __construct($notification, $data = [])
14
    {
15
        $this->notification = $notification;
16
        $this->data = $data;
17
    }
18
19
    /**
20
     * @return mixed
21
     */
22
    public function getNotification()
23
    {
24
        return $this->notification;
25
    }
26
27
    /**
28
     * @return array
29
     */
30
    public function getData()
31
    {
32
        return $this->data;
33
    }
34
}
35