Total Complexity | 18 |
Total Lines | 145 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class InvoiceRow |
||
13 | { |
||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $id; |
||
18 | /** |
||
19 | * @var int |
||
20 | */ |
||
21 | protected $invoiceId; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description; |
||
26 | /** |
||
27 | * @var float |
||
28 | */ |
||
29 | protected $quantity; |
||
30 | /** |
||
31 | * @var float |
||
32 | */ |
||
33 | protected $price; |
||
34 | /** |
||
35 | * @var float |
||
36 | */ |
||
37 | protected $tax; |
||
38 | /** |
||
39 | * @var float |
||
40 | */ |
||
41 | protected $total; |
||
42 | /** |
||
43 | * @var int |
||
44 | */ |
||
45 | protected $index; |
||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $code; |
||
50 | |||
51 | public function getId(): int |
||
52 | { |
||
53 | return $this->id; |
||
54 | } |
||
55 | |||
56 | public function setId(int $id): self |
||
57 | { |
||
58 | $this->id = $id; |
||
59 | |||
60 | return $this; |
||
61 | } |
||
62 | |||
63 | public function getInvoiceId(): int |
||
64 | { |
||
65 | return $this->invoiceId; |
||
66 | } |
||
67 | |||
68 | public function setInvoiceId(int $invoiceId): self |
||
69 | { |
||
70 | $this->invoiceId = $invoiceId; |
||
71 | |||
72 | return $this; |
||
73 | } |
||
74 | |||
75 | public function getDescription(): string |
||
76 | { |
||
77 | return $this->description; |
||
78 | } |
||
79 | |||
80 | public function setDescription(string $description): self |
||
81 | { |
||
82 | $this->description = $description; |
||
83 | |||
84 | return $this; |
||
85 | } |
||
86 | |||
87 | public function getQuantity(): float |
||
88 | { |
||
89 | return $this->quantity; |
||
90 | } |
||
91 | |||
92 | public function setQuantity(float $quantity): self |
||
93 | { |
||
94 | $this->quantity = $quantity; |
||
95 | |||
96 | return $this; |
||
97 | } |
||
98 | |||
99 | public function getPrice(): float |
||
100 | { |
||
101 | return $this->price; |
||
102 | } |
||
103 | |||
104 | public function setPrice(float $price): self |
||
105 | { |
||
106 | $this->price = $price; |
||
107 | |||
108 | return $this; |
||
109 | } |
||
110 | |||
111 | public function getTax(): float |
||
112 | { |
||
113 | return $this->tax; |
||
114 | } |
||
115 | |||
116 | public function setTax(float $tax): self |
||
117 | { |
||
118 | $this->tax = $tax; |
||
119 | |||
120 | return $this; |
||
121 | } |
||
122 | |||
123 | public function getTotal(): float |
||
126 | } |
||
127 | |||
128 | public function setTotal(float $total): self |
||
129 | { |
||
130 | $this->total = $total; |
||
131 | |||
132 | return $this; |
||
133 | } |
||
134 | |||
135 | public function getIndex(): int |
||
136 | { |
||
137 | return $this->index; |
||
138 | } |
||
139 | |||
140 | public function setIndex(int $index): self |
||
141 | { |
||
142 | $this->index = $index; |
||
143 | |||
144 | return $this; |
||
145 | } |
||
146 | |||
147 | public function getCode(): string |
||
148 | { |
||
149 | return $this->code; |
||
150 | } |
||
151 | |||
152 | public function setCode(string $code): self |
||
157 | } |
||
158 | } |
||
159 |