AbstractSubscriptionNotificationPayload   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 86
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 86
ccs 0
cts 27
cp 0
rs 10

6 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 getCreated() 0 4 1
A setCreated() 0 6 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Model\Notification\Subscription;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\Model\Notification\AbstractNotificationPayload;
7
use Speicher210\Fastbill\Api\Model\Notification\Customer\Customer;
8
9
/**
10
 * Abstract subscription notification payload model.
11
 */
12
abstract class AbstractSubscriptionNotificationPayload extends AbstractNotificationPayload implements SubscriptionNotificationPayloadInterface
13
{
14
    /**
15
     * The customer for the subscription notification.
16
     *
17
     * @var Customer
18
     *
19
     * @JMS\Type("Speicher210\Fastbill\Api\Model\Notification\Customer\Customer")
20
     * @JMS\SerializedName("customer")
21
     */
22
    protected $customer;
23
24
    /**
25
     * The subscription for the subscription notification.
26
     *
27
     * @var Subscription
28
     *
29
     * @JMS\Type("Speicher210\Fastbill\Api\Model\Notification\Subscription\Subscription")
30
     * @JMS\SerializedName("subscription")
31
     */
32
    protected $subscription;
33
34
    /**
35
     * The date and time when the subscription notification was created.
36
     *
37
     * @var \DateTime
38
     *
39
     * @JMS\Type("DateTime<'Y-m-d H:i:s'>")
40
     * @JMS\SerializedName("created")
41
     */
42
    protected $created;
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getCustomer()
48
    {
49
        return $this->customer;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function setCustomer($customer)
56
    {
57
        $this->customer = $customer;
58
59
        return $this;
60
    }
61
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function getSubscription()
66
    {
67
        return $this->subscription;
68
    }
69
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function setSubscription($subscription)
74
    {
75
        $this->subscription = $subscription;
76
77
        return $this;
78
    }
79
80
    /**
81
     * {@inheritdoc}
82
     */
83
    public function getCreated()
84
    {
85
        return $this->created;
86
    }
87
88
    /**
89
     * {@inheritdoc}
90
     */
91
    public function setCreated($created)
92
    {
93
        $this->created = $created;
94
95
        return $this;
96
    }
97
}
98