You are here

public function ValidationVisitor::getViolations in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ValidationVisitor.php \Symfony\Component\Validator\ValidationVisitor::getViolations()

Returns the violations generated by the validator so far.

Return value

ConstraintViolationListInterface A list of constraint violations.

Overrides GlobalExecutionContextInterface::getViolations

File

vendor/symfony/validator/ValidationVisitor.php, line 176

Class

ValidationVisitor
Default implementation of {@link ValidationVisitorInterface} and {@link GlobalExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

public function getViolations() {
  return $this->violations;
}