AbstractNotificationEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPayloadData() 0 4 1
A setPayloadData() 0 6 1
1
<?php
2
3
namespace Speicher210\FastbillBundle\Event;
4
5
use Speicher210\Fastbill\Api\Model\Notification\NotificationPayloadInterface;
6
use Symfony\Component\EventDispatcher\Event;
7
8
/**
9
 * Abstract notification event.
10
 */
11
abstract class AbstractNotificationEvent extends Event implements NotificationEventInterface
12
{
13
14
    /**
15
     * The notification request payload data.
16
     *
17
     * @var NotificationPayloadInterface
18
     */
19
    protected $payloadData;
20
21
    /**
22
     * {@inheritdoc}
23
     */
24 36
    public function getPayloadData()
25
    {
26 36
        return $this->payloadData;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32 36
    public function setPayloadData(NotificationPayloadInterface $data)
33
    {
34 36
        $this->payloadData = $data;
35
36 36
        return $this;
37
    }
38
}
39