reference = $reference; $this->name = $name; $this->quantity = $quantity; $this->price = $price; $this->taxPercentage = $taxPercentage; } /** * @return string */ public function getReference(): ?string { return $this->reference; } /** * @return string */ public function getName(): ?string { return $this->name; } /** * @return float */ public function getQuantity(): ?float { return $this->quantity; } /** * @return float */ public function getPrice(): ?float { return $this->price; } /** * @return float */ public function getAmount(): float { return ($this->getQuantity() * $this->getPrice()) + $this->getTaxAmount(); } /** * @return float */ public function getTaxPercentage(): ?float { return $this->taxPercentage; } /** * @return float */ public function getTaxAmount(): float { return ($this->getQuantity() * $this->getPrice()) * $this->getTaxPercentage() / 100; } }