public function GlobalExecutionContextInterface::getViolations in Plug 7
Returns the violations generated by the validator so far.
Return value
ConstraintViolationListInterface A list of constraint violations.
2 methods override GlobalExecutionContextInterface::getViolations()
- StubGlobalExecutionContext::getViolations in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Fixtures/ StubGlobalExecutionContext.php - Returns the violations generated by the validator so far.
- ValidationVisitor::getViolations in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ValidationVisitor.php - Returns the violations generated by the validator so far.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ GlobalExecutionContextInterface.php, line 40
Class
- GlobalExecutionContextInterface
- Stores the node-independent state of a validation run.
Namespace
Symfony\Component\ValidatorCode
public function getViolations();