reference = $reference; $this->name = $name; $this->quantity = $quantity; $this->price = $price; } /** * @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; } public function getAmount(): float { return $this->getQuantity() * $this->getPrice(); } }