InvoiceItem   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 215
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 14
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 215
ccs 21
cts 35
cp 0.6
rs 10

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getInvoiceItemId() 0 4 1
A setInvoiceItemId() 0 4 1
A getArticleNumber() 0 4 1
A setArticleNumber() 0 4 1
A getDescription() 0 4 1
A setDescription() 0 4 1
A getQuantity() 0 4 1
A setQuantity() 0 4 1
A getUnitPrice() 0 4 1
A setUnitPrice() 0 4 1
A getCompleteGross() 0 4 1
A setCompleteGross() 0 4 1
A getSortOrder() 0 4 1
A setSortOrder() 0 4 1
1
<?php
2
3
namespace Speicher210\Fastbill\Api\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
/**
8
 * Invoice item model.
9
 */
10
class InvoiceItem
11
{
12
    use InvoiceVatItemTrait;
13
14
    /**
15
     * The invoice item id.
16
     *
17
     * @var string
18
     *
19
     * @JMS\Type("string")
20
     * @JMS\SerializedName("INVOICE_ITEM_ID")
21
     */
22
    protected $invoiceItemId;
23
24
    /**
25
     * The invoice item article number.
26
     *
27
     * @var string
28
     *
29
     * @JMS\Type("string")
30
     * @JMS\SerializedName("ARTICLE_NUMBER")
31
     */
32
    protected $articleNumber;
33
34
    /**
35
     * The invoice item description.
36
     *
37
     * @var string
38
     *
39
     * @JMS\Type("string")
40
     * @JMS\SerializedName("DESCRIPTION")
41
     */
42
    protected $description;
43
44
    /**
45
     * The invoice item quantity.
46
     *
47
     * @var integer
48
     *
49
     * @JMS\Type("integer")
50
     * @JMS\SerializedName("QUANTITY")
51
     */
52
    protected $quantity;
53
54
    /**
55
     * The invoice item unit price.
56
     *
57
     * @var float
58
     *
59
     * @JMS\Type("string")
60
     * @JMS\SerializedName("UNIT_PRICE")
61
     */
62
    protected $unitPrice;
63
64
    /**
65
     * The invoice item complete gross value.
66
     *
67
     * @var string
68
     *
69
     * @JMS\Type("string")
70
     * @JMS\SerializedName("COMPLETE_GROSS")
71
     */
72
    protected $completeGross;
73
74
    /**
75
     * The invoice item sort order.
76
     *
77
     * @var integer
78
     *
79
     * @JMS\Type("integer")
80
     * @JMS\SerializedName("SORT_ORDER")
81
     */
82
    protected $sortOrder;
83
84
    /**
85
     * Get the invoice item id.
86
     *
87
     * @return string
88
     */
89
    public function getInvoiceItemId()
90
    {
91
        return $this->invoiceItemId;
92
    }
93
94
    /**
95
     * Set the invoice item id.
96
     *
97
     * @param string $invoiceItemId
98
     */
99 6
    public function setInvoiceItemId($invoiceItemId)
100
    {
101 6
        $this->invoiceItemId = $invoiceItemId;
102 6
    }
103
104
    /**
105
     * Get the article number.
106
     *
107
     * @return integer
108
     */
109
    public function getArticleNumber()
110
    {
111
        return $this->articleNumber;
112
    }
113
114
    /**
115
     * Set the article number.
116
     *
117
     * @param string $articleNumber
118
     */
119 6
    public function setArticleNumber($articleNumber)
120
    {
121 6
        $this->articleNumber = $articleNumber;
122 6
    }
123
124
    /**
125
     * Get the description.
126
     *
127
     * @return string
128
     */
129
    public function getDescription()
130
    {
131
        return $this->description;
132
    }
133
134
    /**
135
     * Set the description.
136
     *
137
     * @param string $description
138
     */
139 6
    public function setDescription($description)
140
    {
141 6
        $this->description = $description;
142 6
    }
143
144
    /**
145
     * Get the quantity.
146
     *
147
     * @return integer
148
     */
149
    public function getQuantity()
150
    {
151
        return $this->quantity;
152
    }
153
154
    /**
155
     * Set the quantity.
156
     *
157
     * @param integer $quantity
158
     */
159 6
    public function setQuantity($quantity)
160
    {
161 6
        $this->quantity = $quantity;
162 6
    }
163
164
165
    /**
166
     * Get the unit price.
167
     *
168
     * @return float
169
     */
170
    public function getUnitPrice()
171
    {
172
        return $this->unitPrice;
173
    }
174
175
    /**
176
     * Set the unit price.
177
     *
178
     * @param float $unitPrice
179
     */
180 6
    public function setUnitPrice($unitPrice)
181
    {
182 6
        $this->unitPrice = $unitPrice;
183 6
    }
184
185
    /**
186
     * Get the complete gross value.
187
     *
188
     * @return string
189
     */
190
    public function getCompleteGross()
191
    {
192
        return $this->completeGross;
193
    }
194
195
    /**
196
     * Set the complete gross value.
197
     *
198
     * @param string $completeGross
199
     */
200 6
    public function setCompleteGross($completeGross)
201
    {
202 6
        $this->completeGross = $completeGross;
203 6
    }
204
205
    /**
206
     * Get the sort order.
207
     *
208
     * @return integer
209
     */
210
    public function getSortOrder()
211
    {
212
        return $this->sortOrder;
213
    }
214
215
    /**
216
     * Set the sort order.
217
     *
218
     * @param integer $sortOrder
219
     */
220 6
    public function setSortOrder($sortOrder)
221
    {
222 6
        $this->sortOrder = $sortOrder;
223 6
    }
224
}
225