AbstractNotificationPayload::setId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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