You are here

public function ConstraintViolationBuilderInterface::addViolation in Plug 7

Adds the violation to the current execution context.

2 methods override ConstraintViolationBuilderInterface::addViolation()
ConstraintViolationBuilder::addViolation in lib/Symfony/validator/Symfony/Component/Validator/Violation/ConstraintViolationBuilder.php
Adds the violation to the current execution context.
LegacyConstraintViolationBuilder::addViolation in lib/Symfony/validator/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php
Adds the violation to the current execution context.

File

lib/Symfony/validator/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php, line 114

Class

ConstraintViolationBuilderInterface
Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.

Namespace

Symfony\Component\Validator\Violation

Code

public function addViolation();