AbstractNotificationPayload   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 59
ccs 0
cts 18
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getType() 0 4 1
A setType() 0 6 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Model\Notification;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Abstract notification payload model.
9
 */
10
abstract class AbstractNotificationPayload implements NotificationPayloadInterface
11
{
12
13
    /**
14
     * The notification ID.
15
     *
16
     * @var integer
17
     *
18
     * @JMS\Type("integer")
19
     * @JMS\SerializedName("id")
20
     */
21
    protected $id;
22
23
    /**
24
     * The notification type.
25
     *
26
     * @var string
27
     *
28
     * @JMS\Type("string")
29
     * @JMS\SerializedName("type")
30
     */
31
    protected $type;
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    public function getId()
37
    {
38
        return $this->id;
39
    }
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function setId($id)
45
    {
46
        $this->id = $id;
47
48
        return $this;
49
    }
50
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function getType()
55
    {
56
        return $this->type;
57
    }
58
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function setType($type)
63
    {
64
        $this->type = $type;
65
66
        return $this;
67
    }
68
}
69