AbstractNotificationEvent::getPayloadData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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