Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function addRule(RuleInterface $rule)
 {
     if (!$this->hasRule($rule)) {
         $rule->setMethod($this);
         $this->rules->add($rule);
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function addRule(RuleInterface $rule)
 {
     if (!$this->hasRule($rule)) {
         $rule->setPromotion($this);
         $this->rules->add($rule);
     }
     return $this;
 }