user = $user; $this->voucherCode = $voucherCode; $this->isVoucherCodeUnique = $isVoucherCodeUnique; } /** * @return string */ public function getVoucherCode(): string { return $this->voucherCode; } /** * @return null|User */ public function getUser(): ?User { return $this->user; } /** * @return bool */ public function getIsVoucherCodeUnique(): bool { return $this->isVoucherCodeUnique; } }