You are here

public function ConstraintViolationBuilder::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::__construct()
  2. 8 core/lib/Drupal/Core/TypedData/Validation/ConstraintViolationBuilder.php \Drupal\Core\TypedData\Validation\ConstraintViolationBuilder::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Violation/ConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\ConstraintViolationBuilder::__construct()

File

vendor/symfony/validator/Violation/ConstraintViolationBuilder.php, line 92

Class

ConstraintViolationBuilder
Default implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function __construct(ConstraintViolationList $violations, Constraint $constraint, $message, array $parameters, $root, $propertyPath, $invalidValue, TranslatorInterface $translator, $translationDomain = null) {
  $this->violations = $violations;
  $this->message = $message;
  $this->parameters = $parameters;
  $this->root = $root;
  $this->propertyPath = $propertyPath;
  $this->invalidValue = $invalidValue;
  $this->translator = $translator;
  $this->translationDomain = $translationDomain;
  $this->constraint = $constraint;
}