You are here

public function ValidationVisitor::getViolations in Plug 7

Returns the violations generated by the validator so far.

Return value

ConstraintViolationListInterface A list of constraint violations.

Overrides GlobalExecutionContextInterface::getViolations

File

lib/Symfony/validator/Symfony/Component/Validator/ValidationVisitor.php, line 174

Class

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

Namespace

Symfony\Component\Validator

Code

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