Completed
Push — master ( 116dd8...98663d )
by Al3x
02:26
created

InvoiceItem   A

Complexity

Total Complexity 16

Size/Duplication

Total Lines 147
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 16
lcom 0
cbo 1
dl 0
loc 147
c 0
b 0
f 0
rs 10

16 Methods

Rating   Name   Duplication   Size   Complexity  
A getProductKey() 0 4 1
A setProductKey() 0 4 1
A getNotes() 0 4 1
A setNotes() 0 4 1
A getCost() 0 4 1
A setCost() 0 4 1
A getQty() 0 4 1
A setQty() 0 4 1
A getTaxName1() 0 4 1
A setTaxName1() 0 4 1
A getTaxRate1() 0 4 1
A setTaxRate1() 0 4 1
A getTaxName2() 0 4 1
A setTaxName2() 0 4 1
A getTaxRate2() 0 4 1
A setTaxRate2() 0 4 1
1
<?php
2
3
namespace InvoiceNinjaModule\Model;
4
5
use InvoiceNinjaModule\Model\Interfaces\InvoiceItemInterface;
6
7
class InvoiceItem extends Base implements InvoiceItemInterface
8
{
9
    /** @var  string */
10
    private $productKey;
11
    /** @var  string */
12
    private $notes;
13
    /** @var  double */
14
    private $cost;
15
    /** @var  int */
16
    private $qty;
17
    /** @var  string */
18
    private $taxName1;
19
    /** @var  double */
20
    private $taxRate1;
21
    /** @var  string */
22
    private $taxName2;
23
    /** @var  double */
24
    private $taxRate2;
25
26
    /**
27
     * @return string
28
     */
29
    public function getProductKey()
30
    {
31
        return $this->productKey;
32
    }
33
34
    /**
35
     * @param string $productKey
36
     */
37
    public function setProductKey($productKey)
38
    {
39
        $this->productKey = $productKey;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getNotes()
46
    {
47
        return $this->notes;
48
    }
49
50
    /**
51
     * @param string $notes
52
     */
53
    public function setNotes($notes)
54
    {
55
        $this->notes = $notes;
56
    }
57
58
    /**
59
     * @return float
60
     */
61
    public function getCost()
62
    {
63
        return $this->cost;
64
    }
65
66
    /**
67
     * @param float $cost
68
     */
69
    public function setCost($cost)
70
    {
71
        $this->cost = $cost;
72
    }
73
74
    /**
75
     * @return int
76
     */
77
    public function getQty()
78
    {
79
        return $this->qty;
80
    }
81
82
    /**
83
     * @param int $qty
84
     */
85
    public function setQty($qty)
86
    {
87
        $this->qty = $qty;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getTaxName1()
94
    {
95
        return $this->taxName1;
96
    }
97
98
    /**
99
     * @param string $taxName1
100
     */
101
    public function setTaxName1($taxName1)
102
    {
103
        $this->taxName1 = $taxName1;
104
    }
105
106
    /**
107
     * @return float
108
     */
109
    public function getTaxRate1()
110
    {
111
        return $this->taxRate1;
112
    }
113
114
    /**
115
     * @param float $taxRate1
116
     */
117
    public function setTaxRate1($taxRate1)
118
    {
119
        $this->taxRate1 = $taxRate1;
120
    }
121
122
    /**
123
     * @return string
124
     */
125
    public function getTaxName2()
126
    {
127
        return $this->taxName2;
128
    }
129
130
    /**
131
     * @param string $taxName2
132
     */
133
    public function setTaxName2($taxName2)
134
    {
135
        $this->taxName2 = $taxName2;
136
    }
137
138
    /**
139
     * @return float
140
     */
141
    public function getTaxRate2()
142
    {
143
        return $this->taxRate2;
144
    }
145
146
    /**
147
     * @param float $taxRate2
148
     */
149
    public function setTaxRate2($taxRate2)
150
    {
151
        $this->taxRate2 = $taxRate2;
152
    }
153
}
154