/** * {@inheritdoc} */ public function addRule(RuleInterface $rule) { if (!$this->hasRule($rule)) { $rule->setMethod($this); $this->rules->add($rule); } }
/** * {@inheritdoc} */ public function addRule(RuleInterface $rule) { if (!$this->hasRule($rule)) { $rule->setPromotion($this); $this->rules->add($rule); } return $this; }