Add a rule as a reason
Rule $rule A rule which is a reason for this problem:
public function addRule(Rule $rule) : void { $this->addReason(spl_object_hash($rule), $rule); }