You are here

public function ExecutionContextInterface::setConstraint in Plug 7

Sets the currently validated constraint.

@internal Used by the validator engine. Should not be called by user code.

Parameters

Constraint $constraint The validated constraint:

1 method overrides ExecutionContextInterface::setConstraint()
ExecutionContext::setConstraint in lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php
Sets the currently validated constraint.

File

lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContextInterface.php, line 148

Class

ExecutionContextInterface
The context of a validation run.

Namespace

Symfony\Component\Validator\Context

Code

public function setConstraint(Constraint $constraint);