RequestData::setExternalCustomerId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Service\Subscription\Get;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\AbstractRequestData;
7
8
/**
9
 * The request data for getting the subscriptions.
10
 */
11
final class RequestData extends AbstractRequestData
12
{
13
    /**
14
     * The subscription ID.
15
     *
16
     * @var integer
17
     *
18
     * @JMS\Type("integer")
19
     * @JMS\SerializedName("SUBSCRIPTION_ID")
20
     */
21
    protected $subscriptionId;
22
23
    /**
24
     * The customer ID.
25
     *
26
     * @var integer
27
     *
28
     * @JMS\Type("integer")
29
     * @JMS\SerializedName("CUSTOMER_ID")
30
     */
31
    protected $customerId;
32
33
    /**
34
     * The subscription external ID.
35
     *
36
     * @var string
37
     *
38
     * @JMS\Type("string")
39
     * @JMS\SerializedName("SUBSCRIPTION_EXT_UID")
40
     */
41
    protected $subscriptionExternalId;
42
43
    /**
44
     * The customer external ID.
45
     *
46
     * @var string
47
     *
48
     * @JMS\Type("string")
49
     * @JMS\SerializedName("CUSTOMER_EXT_UID")
50
     */
51
    protected $externalCustomerId;
52
53
    /**
54
     * Get the subscription ID.
55
     *
56
     * @return integer
57
     */
58 6
    public function getSubscriptionId()
59
    {
60 6
        return $this->subscriptionId;
61
    }
62
63
    /**
64
     * Set the subscription ID.
65
     *
66
     * @param integer $subscriptionId The subscription ID.
67
     * @return RequestData
68
     */
69 12
    public function setSubscriptionId($subscriptionId)
70
    {
71 12
        $this->subscriptionId = $subscriptionId;
72
73 12
        return $this;
74
    }
75
76
    /**
77
     * Get the customer ID of the request body.
78
     *
79
     * @return integer
80
     */
81 6
    public function getCustomerId()
82
    {
83 6
        return $this->customerId;
84
    }
85
86
    /**
87
     * Set the customer ID.
88
     *
89
     * @param integer $customerId The customer ID.
90
     * @return RequestData
91
     */
92 12
    public function setCustomerId($customerId)
93
    {
94 12
        return $this->customerId = $customerId;
95
    }
96
97
    /**
98
     * Get the external subscription ID.
99
     *
100
     * @return string
101
     */
102 6
    public function getSubscriptionExternalId()
103
    {
104 6
        return $this->subscriptionExternalId;
105
    }
106
107
    /**
108
     * Set the external subscription ID.
109
     *
110
     * @param string $subscriptionExternalId The external subscription ID.
111
     * @return RequestData
112
     */
113 12
    public function setSubscriptionExternalId($subscriptionExternalId)
114
    {
115 12
        $this->subscriptionExternalId = $subscriptionExternalId;
116
117 12
        return $this;
118
    }
119
120
    /**
121
     * Get the external customer ID.
122
     *
123
     * @return string
124
     */
125 6
    public function getExternalCustomerId()
126
    {
127 6
        return $this->externalCustomerId;
128
    }
129
130
    /**
131
     * Set the external customer ID.
132
     *
133
     * @param string $externalCustomerId The external customer ID.
134
     * @return RequestData
135
     */
136 12
    public function setExternalCustomerId($externalCustomerId)
137
    {
138 12
        $this->externalCustomerId = $externalCustomerId;
139
140 12
        return $this;
141
    }
142
}
143