/**
  * @param Generic\NotConstraint $constraint
  *
  * @return Result\ValidationResult
  */
 public function visitNotConstraint(Generic\NotConstraint $constraint)
 {
     if (!$constraint->schema()->accept($this)->isValid()) {
         return $this->createResult();
     }
     return $this->createSingleIssueResult($constraint);
 }
 /**
  * @param Generic\NotConstraint $constraint
  *
  * @return Generic\NotConstraint
  */
 public function visitNotConstraint(Generic\NotConstraint $constraint)
 {
     return new Generic\NotConstraint($constraint->schema()->accept($this));
 }