1 | <?php |
||
5 | class PaymentLine |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $productNumber; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name; |
||
16 | |||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | protected $quantity; |
||
21 | |||
22 | /** |
||
23 | * The price excl vat |
||
24 | * |
||
25 | * @var float |
||
26 | */ |
||
27 | protected $price; |
||
28 | |||
29 | /** |
||
30 | * This is the VAT percentage, i.e. 25 for Denmark |
||
31 | * |
||
32 | * @var int |
||
33 | */ |
||
34 | protected $vat; |
||
35 | |||
36 | /** |
||
37 | * @return string |
||
38 | */ |
||
39 | 3 | public function getProductNumber() : string |
|
43 | |||
44 | /** |
||
45 | * @param string $productNumber |
||
46 | * @return PaymentLine |
||
47 | */ |
||
48 | 6 | public function setProductNumber(string $productNumber) : self |
|
53 | |||
54 | /** |
||
55 | * @return string |
||
56 | */ |
||
57 | 3 | public function getName() : string |
|
61 | |||
62 | /** |
||
63 | * @param string $name |
||
64 | * @return PaymentLine |
||
65 | */ |
||
66 | 6 | public function setName($name) : self |
|
71 | |||
72 | /** |
||
73 | * @return int |
||
74 | */ |
||
75 | 3 | public function getQuantity() : int |
|
79 | |||
80 | /** |
||
81 | * @param int $quantity |
||
82 | * @return PaymentLine |
||
83 | */ |
||
84 | 6 | public function setQuantity($quantity) : self |
|
89 | |||
90 | /** |
||
91 | * @return float |
||
92 | */ |
||
93 | 3 | public function getPrice() : float |
|
97 | |||
98 | /** |
||
99 | * @param float $price |
||
100 | * @return PaymentLine |
||
101 | */ |
||
102 | 6 | public function setPrice($price) : self |
|
107 | |||
108 | /** |
||
109 | * Returns the VAT percentage |
||
110 | * |
||
111 | * @return int |
||
112 | */ |
||
113 | 3 | public function getVat() : int |
|
117 | |||
118 | /** |
||
119 | * @param int $vat |
||
120 | * @return PaymentLine |
||
121 | */ |
||
122 | 6 | public function setVat($vat) : self |
|
127 | } |
||
128 |