RequestData::setCoupon()   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 1
Bugs 0 Features 0
Metric Value
c 1
b 0
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\GetUpcomingAmount;
4
5
use JMS\Serializer\Annotation as JMS;
6
use Speicher210\Fastbill\Api\AbstractRequestData;
7
use Speicher210\Fastbill\Api\Model\Addon;
8
9
/**
10
 * The request for getting the upcoming amount.
11
 */
12
final class RequestData extends AbstractRequestData
13
{
14
    /**
15
     * The article number.
16
     *
17
     * @var string
18
     *
19
     * @JMS\Type("string")
20
     * @JMS\SerializedName("ARTICLE_NUMBER")
21
     */
22
    protected $articleNumber;
23
24
    /**
25
     * The coupon.
26
     *
27
     * @var string
28
     *
29
     * @JMS\Type("string")
30
     * @JMS\SerializedName("COUPON")
31
     */
32
    protected $coupon;
33
34
    /**
35
     * The country code (ISO 3166 ALPHA-2).
36
     *
37
     * @var string
38
     *
39
     * @JMS\Type("string")
40
     * @JMS\SerializedName("COUNTRY_CODE")
41
     */
42
    protected $countryCode;
43
44
    /**
45
     * The addons.
46
     *
47
     * @var array
48
     *
49
     * @JMS\Type("array<Speicher210\Fastbill\Api\Model\Addon>")
50
     * @JMS\SerializedName("ADDONS")
51
     */
52
    protected $addons = array();
53
54
    /**
55
     * Get the article number.
56
     *
57
     * @return string
58
     */
59
    public function getArticleNumber()
60
    {
61
        return $this->articleNumber;
62
    }
63
64
    /**
65
     * Set the article number.
66
     *
67
     * @param string $articleNumber The article number.
68
     * @return RequestData
69
     */
70 3
    public function setArticleNumber($articleNumber)
71
    {
72 3
        $this->articleNumber = $articleNumber;
73
74 3
        return $this;
75
    }
76
77
    /**
78
     * Get the coupon.
79
     *
80
     * @return string
81
     */
82
    public function getCoupon()
83
    {
84
        return $this->coupon;
85
    }
86
87
    /**
88
     * Set the coupon.
89
     *
90
     * @param string $coupon The coupon.
91
     * @return RequestData
92
     */
93 3
    public function setCoupon($coupon)
94
    {
95 3
        $this->coupon = $coupon;
96
97 3
        return $this;
98
    }
99
100
    /**
101
     * Get the country code.
102
     *
103
     * @return string
104
     */
105
    public function getCountryCode()
106
    {
107
        return $this->countryCode;
108
    }
109
110
    /**
111
     * Set the country code (ISO 3166 ALPHA-2).
112
     *
113
     * @param string $countryCode The country code.
114
     * @return RequestData
115
     */
116 3
    public function setCountryCode($countryCode)
117
    {
118 3
        $this->countryCode = $countryCode;
119
120 3
        return $this;
121
    }
122
123
    /**
124
     * Get the addons.
125
     *
126
     * @return Addon[]
127
     */
128
    public function getAddons()
129
    {
130
        return $this->addons;
131
    }
132
133
    /**
134
     * Set the addons.
135
     *
136
     * @param Addon[] $addons The addons.
137
     * @return RequestData
138
     */
139
    public function setAddons(array $addons)
140
    {
141
        $this->addons = $addons;
142
143
        return $this;
144
    }
145
}
146