public function ExecutionContext::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:
Overrides ExecutionContextInterface::setConstraint
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ ExecutionContext.php, line 176
Class
- ExecutionContext
- The context used and created by {@link ExecutionContextFactory}.
Namespace
Symfony\Component\Validator\ContextCode
public function setConstraint(Constraint $constraint) {
$this->constraint = $constraint;
}