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.

AbstractPaymentNotificationPayload::setCustomer()   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\Payment;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Monsum\Api\Model\Notification\AbstractNotificationPayload;
7
use Speicher210\Monsum\Api\Model\Notification\Customer\Customer;
8
9
/**
10
 * Abstract payment notification payload model.
11
 */
12
abstract class AbstractPaymentNotificationPayload extends AbstractNotificationPayload implements PaymentNotificationPayloadInterface
13
{
14
    /**
15
     * The customer for the payment notification.
16
     *
17
     * @var Customer
18
     *
19
     * @JMS\Type("Speicher210\Monsum\Api\Model\Notification\Customer\Customer")
20
     * @JMS\SerializedName("customer")
21
     */
22
    protected $customer;
23
24
    /**
25
     * The subscription for the payment notification.
26
     *
27
     * @var PaymentSubscription
28
     *
29
     * @JMS\Type("Speicher210\Monsum\Api\Model\Notification\Payment\PaymentSubscription")
30
     * @JMS\SerializedName("subscription")
31
     */
32
    protected $subscription;
33
34
    /**
35
     * The payment for the payment notification.
36
     *
37
     * @var Payment
38
     *
39
     * @JMS\Type("Speicher210\Monsum\Api\Model\Notification\Payment\Payment")
40
     * @JMS\SerializedName("payment")
41
     */
42
    protected $payment;
43
44
    /**
45
     * The date and time when the payment notification was created.
46
     *
47
     * @var \DateTime
48
     *
49
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
50
     * @JMS\SerializedName("created")
51
     */
52
    protected $created;
53
54
    /**
55
     * {@inheritdoc}
56
     */
57
    public function getCustomer()
58
    {
59
        return $this->customer;
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function setCustomer($customer)
66
    {
67
        $this->customer = $customer;
68
69
        return $this;
70
    }
71
72
    /**
73
     * {@inheritdoc}
74
     */
75
    public function getSubscription()
76
    {
77
        return $this->subscription;
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function setSubscription($subscription)
84
    {
85
        $this->subscription = $subscription;
86
87
        return $this;
88
    }
89
90
    /**
91
     * {@inheritdoc}
92
     */
93
    public function getPayment()
94
    {
95
        return $this->payment;
96
    }
97
98
    /**
99
     * {@inheritdoc}
100
     */
101
    public function setPayment($payment)
102
    {
103
        $this->payment = $payment;
104
105
        return $this;
106
    }
107
108
    /**
109
     * {@inheritdoc}
110
     */
111
    public function getCreated()
112
    {
113
        return $this->created;
114
    }
115
116
    /**
117
     * {@inheritdoc}
118
     */
119
    public function setCreated($created)
120
    {
121
        $this->created = $created;
122
123
        return $this;
124
    }
125
}
126