wcCoupon = $wcCoupon; } /** * @return \WC_Coupon */ public function getWcCoupon(): \WC_Coupon { return $this->wcCoupon; } public function getCode(): string { return $this->wcCoupon->get_code("edit"); } }