Ejemplo n.º 1
0
 /**
  * Returns the concrete failed constraint.
  * @param \Brickoo\Component\Validation\Constraint\Constraint $constraint
  * @return null|\Brickoo\Component\Validation\Constraint\Constraint
  */
 private function getConcreteFailedConstraint(Constraint $constraint)
 {
     if ($constraint instanceof AndOrConstraint) {
         return $constraint->getFailedConstraint();
     }
     return $constraint;
 }