voucher_name = $voucher_name; $this->code = $code; $this->discount_type = $discount_type; $this->total_discount_amount = $total_discount_amount; $this->total_amount = $total_amount; } /** * @return string */ public function getVoucherName(): string { return $this->voucher_name; } /** * @return string */ public function getCode(): string { return $this->code; } /** * @return string */ public function getDiscountType(): string { return $this->discount_type; } /** * @return float */ public function getTotalDiscountAmount(): float { return $this->total_discount_amount / 100; } /** * @return float */ public function getTotalAmount(): float { return $this->total_amount / 100; } }