GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SubscriptionTrait::getSubscriptionId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Speicher210\Monsum\Api\Model\Notification\Subscription;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Trait for subscription data in a notification model.
9
 */
10
trait SubscriptionTrait
11
{
12
    /**
13
     * The subscription ID.
14
     *
15
     * @var integer
16
     *
17
     * @JMS\Type("integer")
18
     * @JMS\SerializedName("subscription_id")
19
     */
20
    protected $subscriptionId;
21
22
    /**
23
     * The external subscription ID.
24
     *
25
     * @var string
26
     *
27
     * @JMS\Type("string")
28
     * @JMS\SerializedName("subscription_ext_uid")
29
     */
30
    protected $subscriptionExternalId;
31
32
    /**
33
     * The subscription hash.
34
     *
35
     * @var string
36
     *
37
     * @JMS\Type("string")
38
     * @JMS\SerializedName("hash")
39
     */
40
    protected $hash;
41
42
    /**
43
     * The subscription article code.
44
     *
45
     * @var string
46
     *
47
     * @JMS\Type("string")
48
     * @JMS\SerializedName("article_code")
49
     */
50
    protected $articleCode;
51
52
    /**
53
     * The subscription quantity.
54
     *
55
     * @var integer
56
     *
57
     * @JMS\Type("integer")
58
     * @JMS\SerializedName("quantity")
59
     */
60
    protected $quantity;
61
62
    /**
63
     * Get the subscription ID.
64
     *
65
     * @return integer
66
     */
67
    public function getSubscriptionId()
68
    {
69
        return $this->subscriptionId;
70
    }
71
72
    /**
73
     * Set the subscription ID.
74
     *
75
     * @param integer $subscriptionId
76
     * @return $this
77
     */
78
    public function setSubscriptionId($subscriptionId)
79
    {
80
        $this->subscriptionId = $subscriptionId;
81
82
        return $this;
83
    }
84
85
    /**
86
     * Get the subscription external ID.
87
     *
88
     * @return string
89
     */
90
    public function getSubscriptionExternalId()
91
    {
92
        return $this->subscriptionExternalId;
93
    }
94
95
    /**
96
     * Set the subscription external ID.
97
     *
98
     * @param string $subscriptionExternalId The subscription external ID.
99
     * @return $this
100
     */
101
    public function setSubscriptionExternalId($subscriptionExternalId)
102
    {
103
        $this->subscriptionExternalId = $subscriptionExternalId;
104
105
        return $this;
106
    }
107
108
    /**
109
     * Get the hash.
110
     *
111
     * @return string
112
     */
113
    public function getHash()
114
    {
115
        return $this->hash;
116
    }
117
118
    /**
119
     * Set the hash.
120
     *
121
     * @param string $hash The hash.
122
     * @return $this
123
     */
124
    public function setHash($hash)
125
    {
126
        $this->hash = $hash;
127
128
        return $this;
129
    }
130
131
    /**
132
     * Get the article code.
133
     *
134
     * @return string
135
     */
136
    public function getArticleCode()
137
    {
138
        return $this->articleCode;
139
    }
140
141
    /**
142
     * Set the article code.
143
     *
144
     * @param string $articleCode The article code.
145
     * @return $this
146
     */
147
    public function setArticleCode($articleCode)
148
    {
149
        $this->articleCode = $articleCode;
150
151
        return $this;
152
    }
153
154
    /**
155
     * Get the quantity.
156
     *
157
     * @return integer
158
     */
159
    public function getQuantity()
160
    {
161
        return $this->quantity;
162
    }
163
164
    /**
165
     * Set the quantity.
166
     *
167
     * @param integer $quantity The quantity.
168
     * @return $this
169
     */
170
    public function setQuantity($quantity)
171
    {
172
        $this->quantity = $quantity;
173
174
        return $this;
175
    }
176
}
177