You are here

public function LegacyConstraintViolationBuilder::__construct in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php, line 63

Class

LegacyConstraintViolationBuilder
Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function __construct(ExecutionContextInterface $context, $message, array $parameters) {
  $this->context = $context;
  $this->message = $message;
  $this->parameters = $parameters;
  $this->invalidValue = $context
    ->getValue();
}