| 1 | <?php |
||
| 9 | abstract class OrderLine implements OrderLineInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var mixed |
||
| 13 | */ |
||
| 14 | protected $id; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | * |
||
| 19 | * @ORM\Column(type="string") |
||
| 20 | */ |
||
| 21 | protected $productNumber; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | * |
||
| 26 | * @ORM\Column(type="string") |
||
| 27 | */ |
||
| 28 | protected $name; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var int |
||
| 32 | * |
||
| 33 | * @ORM\Column(type="integer") |
||
| 34 | */ |
||
| 35 | protected $quantity; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The price excl vat |
||
| 39 | * |
||
| 40 | * @var float |
||
| 41 | * |
||
| 42 | * @ORM\Column(type="decimal", scale=2, precision=10) |
||
| 43 | */ |
||
| 44 | protected $price; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var int |
||
| 48 | * |
||
| 49 | * @ORM\Column(type="integer") |
||
| 50 | */ |
||
| 51 | protected $vat; |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @var PaymentInterface |
||
| 55 | */ |
||
| 56 | protected $payment; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritdoc |
||
| 60 | */ |
||
| 61 | public function getId() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @inheritdoc |
||
| 68 | */ |
||
| 69 | public function getProductNumber() : string |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @inheritdoc |
||
| 76 | */ |
||
| 77 | public function setProductNumber(string $productNumber) : OrderLineInterface |
||
| 82 | |||
| 83 | /** |
||
| 84 | * @inheritdoc |
||
| 85 | */ |
||
| 86 | public function getName() : string |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @inheritdoc |
||
| 93 | */ |
||
| 94 | public function setName(string $name) : OrderLineInterface |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @inheritdoc |
||
| 102 | */ |
||
| 103 | public function getQuantity() : int |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @inheritdoc |
||
| 110 | */ |
||
| 111 | public function setQuantity(int $quantity) : OrderLineInterface |
||
| 116 | |||
| 117 | /** |
||
| 118 | * @inheritdoc |
||
| 119 | */ |
||
| 120 | public function getPrice() : float |
||
| 124 | |||
| 125 | /** |
||
| 126 | * @inheritdoc |
||
| 127 | */ |
||
| 128 | public function setPrice(float $price) : OrderLineInterface |
||
| 133 | |||
| 134 | /** |
||
| 135 | * @inheritdoc |
||
| 136 | */ |
||
| 137 | public function getVat() : int |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @inheritdoc |
||
| 144 | */ |
||
| 145 | public function setVat(int $vat) : OrderLineInterface |
||
| 150 | |||
| 151 | /** |
||
| 152 | * @inheritdoc |
||
| 153 | */ |
||
| 154 | public function getPayment(): PaymentInterface |
||
| 158 | |||
| 159 | /** |
||
| 160 | * @inheritdoc |
||
| 161 | */ |
||
| 162 | public function setPayment(PaymentInterface $payment): OrderLineInterface |
||
| 167 | |||
| 168 | } |