public function ConstraintViolationListInterface::add in Plug 7
Adds a constraint violation to this list.
@api
Parameters
ConstraintViolationInterface $violation The violation to add.:
1 method overrides ConstraintViolationListInterface::add()
- ConstraintViolationList::add in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationList.php - Adds a constraint violation to this list.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationListInterface.php, line 30
Class
- ConstraintViolationListInterface
- A list of constraint violations.
Namespace
Symfony\Component\ValidatorCode
public function add(ConstraintViolationInterface $violation);