| 1 | <?php |
||
| 7 | class PaymentLine |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $productNumber; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var string |
||
| 16 | */ |
||
| 17 | protected $name; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | protected $quantity; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The price excl vat |
||
| 26 | * |
||
| 27 | * @var float |
||
| 28 | */ |
||
| 29 | protected $price; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * This is the VAT percentage, i.e. 25 for Denmark |
||
| 33 | * |
||
| 34 | * @var int |
||
| 35 | */ |
||
| 36 | protected $vat; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var PaymentRequest |
||
| 40 | */ |
||
| 41 | protected $payment; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 3 | public function getProductNumber() : string |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $productNumber |
||
| 53 | * @return PaymentLine |
||
| 54 | */ |
||
| 55 | 6 | public function setProductNumber(string $productNumber) : self |
|
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 3 | public function getName() : string |
|
| 68 | |||
| 69 | /** |
||
| 70 | * @param string $name |
||
| 71 | * @return PaymentLine |
||
| 72 | */ |
||
| 73 | 6 | public function setName($name) : self |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @return int |
||
| 81 | */ |
||
| 82 | 3 | public function getQuantity() : int |
|
| 86 | |||
| 87 | /** |
||
| 88 | * @param int $quantity |
||
| 89 | * @return PaymentLine |
||
| 90 | */ |
||
| 91 | 6 | public function setQuantity($quantity) : self |
|
| 96 | |||
| 97 | /** |
||
| 98 | * @return float |
||
| 99 | */ |
||
| 100 | 3 | public function getPrice() : float |
|
| 104 | |||
| 105 | /** |
||
| 106 | * @param float $price |
||
| 107 | * @return PaymentLine |
||
| 108 | */ |
||
| 109 | 6 | public function setPrice($price) : self |
|
| 114 | |||
| 115 | /** |
||
| 116 | * Returns the VAT percentage |
||
| 117 | * |
||
| 118 | * @return int |
||
| 119 | */ |
||
| 120 | 3 | public function getVat() : int |
|
| 124 | |||
| 125 | /** |
||
| 126 | * @param int $vat |
||
| 127 | * @return PaymentLine |
||
| 128 | */ |
||
| 129 | 6 | public function setVat($vat) : self |
|
| 134 | |||
| 135 | /** |
||
| 136 | * @return PaymentRequest |
||
| 137 | */ |
||
| 138 | public function getPayment() : PaymentRequest |
||
| 142 | |||
| 143 | /** |
||
| 144 | * @param PaymentRequest $payment |
||
| 145 | * @return PaymentLine |
||
| 146 | */ |
||
| 147 | public function setPayment(PaymentRequest $payment) : self |
||
| 152 | } |
||
| 153 |