public function addRule(Rule $rule)
    {
        $this->addReason($rule->getId(), array(
            'rule' => $rule,
            'job' => $rule->getJob(),
        ));
    }
public function addRule(Rule $rule)
    {
        $this->addReason($rule->getId(), array(
            'rule' => $rule,
            'job' => $rule->getJob(),
        ));
    }
public function addRule ( Rule $ rule ) { $ this -> addReason ( $ rule -> getId ( ) , array ( 'rule' => $ rule , 'job' => $ rule -> getJob ( ) , ) ) ; }
Add a rule as a reason

@param Rule $rule A rule which is a reason for this problem
Add a rule as a reason