You are here

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\Validator

Code

public function add(ConstraintViolationInterface $violation);