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   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 114
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 114
ccs 0
cts 36
cp 0
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getCustomer() 0 4 1
A setCustomer() 0 6 1
A getSubscription() 0 4 1
A setSubscription() 0 6 1
A getPayment() 0 4 1
A setPayment() 0 6 1
A getCreated() 0 4 1
A setCreated() 0 6 1
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