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.

Subscription::setStartDate()   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 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Speicher210\Monsum\Api\Model\Notification\Subscription;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Subscription in a notification model.
9
 */
10
class Subscription
11
{
12
    use SubscriptionTrait;
13
14
    /**
15
     * The subscription start date.
16
     *
17
     * @var \DateTime
18
     *
19
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
20
     * @JMS\SerializedName("start_date")
21
     */
22
    protected $startDate;
23
24
    /**
25
     *  The subscription last event date.
26
     *
27
     * @var \DateTime
28
     *
29
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
30
     * @JMS\SerializedName("last_event")
31
     */
32
    protected $lastEvent;
33
34
    /**
35
     *  The subscription next event date.
36
     *
37
     * @var \DateTime
38
     *
39
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
40
     * @JMS\SerializedName("next_event")
41
     */
42
    protected $nextEvent;
43
44
    /**
45
     *  The subscription cancellation date.
46
     *
47
     * @var \DateTime
48
     *
49
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
50
     * @JMS\SerializedName("cancellation_date")
51
     */
52
    protected $cancellationDate;
53
54
    /**
55
     * The subscription status.
56
     *
57
     * @var string
58
     *
59
     * @JMS\Type("string")
60
     * @JMS\SerializedName("status")
61
     */
62
    protected $status;
63
64
    /**
65
     * The subscription expiration date.
66
     *
67
     * @var \DateTime
68
     *
69
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
70
     * @JMS\SerializedName("expiration_date")
71
     */
72
    protected $expirationDate;
73
74
    /**
75
     * Get the start date and time.
76
     *
77
     * @return \DateTime
78
     */
79
    public function getStartDate()
80
    {
81
        return $this->startDate;
82
    }
83
84
    /**
85
     * Set the start date and time.
86
     *
87
     * @param \DateTime $startDate The start date and time.
88
     * @return Subscription
89
     */
90
    public function setStartDate($startDate)
91
    {
92
        $this->startDate = $startDate;
93
94
        return $this;
95
    }
96
97
    /**
98
     * Get the last event date and time.
99
     *
100
     * @return \DateTime
101
     */
102
    public function getLastEvent()
103
    {
104
        return $this->lastEvent;
105
    }
106
107
    /**
108
     * Set the last event date and time.
109
     *
110
     * @param \DateTime $lastEvent The last event date and time.
111
     * @return Subscription
112
     */
113
    public function setLastEvent($lastEvent)
114
    {
115
        $this->lastEvent = $lastEvent;
116
117
        return $this;
118
    }
119
120
    /**
121
     * Get the next event date and time.
122
     *
123
     * @return \DateTime
124
     */
125
    public function getNextEvent()
126
    {
127
        return $this->nextEvent;
128
    }
129
130
    /**
131
     * Set the next event date and time.
132
     *
133
     * @param \DateTime $nextEvent The next event date and time.
134
     * @return Subscription
135
     */
136
    public function setNextEvent($nextEvent)
137
    {
138
        $this->nextEvent = $nextEvent;
139
140
        return $this;
141
    }
142
143
    /**
144
     * Get the cancellation date and time.
145
     *
146
     * @return \DateTime
147
     */
148
    public function getCancellationDate()
149
    {
150
        return $this->cancellationDate;
151
    }
152
153
    /**
154
     * Set the cancellation date and time.
155
     *
156
     * @param \DateTime $cancellationDate The cancellation date and time.
157
     * @return Subscription
158
     */
159
    public function setCancellationDate($cancellationDate)
160
    {
161
        $this->cancellationDate = $cancellationDate;
162
163
        return $this;
164
    }
165
166
    /**
167
     * Get the status.
168
     *
169
     * @return string
170
     */
171
    public function getStatus()
172
    {
173
        return $this->status;
174
    }
175
176
    /**
177
     * Set the status.
178
     *
179
     * @param string $status The status.
180
     * @return Subscription
181
     */
182
    public function setStatus($status)
183
    {
184
        $this->status = $status;
185
186
        return $this;
187
    }
188
189
    /**
190
     * Get the expiration date and time.
191
     *
192
     * @return \DateTime
193
     */
194
    public function getExpirationDate()
195
    {
196
        return $this->expirationDate;
197
    }
198
199
    /**
200
     * Set the expiration date and time.
201
     *
202
     * @param \DateTime $expirationDate The expiration date and time.
203
     * @return Subscription
204
     */
205
    public function setExpirationDate($expirationDate)
206
    {
207
        $this->expirationDate = $expirationDate;
208
209
        return $this;
210
    }
211
}
212