code = wc_format_coupon_code($code); $this->ruleId = $ruleId; } /** * @return string */ public function getCode() { return $this->code; } /** * @return int */ public function getRuleId() { return $this->ruleId; } }