You are here

public function ConstraintViolationListInterface::add in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolationListInterface.php \Symfony\Component\Validator\ConstraintViolationListInterface::add()

Adds a constraint violation to this list.

Parameters

ConstraintViolationInterface $violation The violation to add.:

1 method overrides ConstraintViolationListInterface::add()
ConstraintViolationList::add in vendor/symfony/validator/ConstraintViolationList.php
Adds a constraint violation to this list.

File

vendor/symfony/validator/ConstraintViolationListInterface.php, line 26

Class

ConstraintViolationListInterface
A list of constraint violations.

Namespace

Symfony\Component\Validator

Code

public function add(ConstraintViolationInterface $violation);