You are here

public function ExecutionContext::getViolations in Plug 7

Same name in this branch
  1. 7 lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php \Symfony\Component\Validator\ExecutionContext::getViolations()
  2. 7 lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php \Symfony\Component\Validator\Context\ExecutionContext::getViolations()

Returns the violations generated by the validator so far.

@api

Return value

ConstraintViolationListInterface The constraint violation list.

Overrides ExecutionContextInterface::getViolations

File

lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php, line 231

Class

ExecutionContext
The context used and created by {@link ExecutionContextFactory}.

Namespace

Symfony\Component\Validator\Context

Code

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