You are here

public function ConstraintViolation::getRoot in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolation.php \Symfony\Component\Validator\ConstraintViolation::getRoot()

Returns the root element of the validation.

Return value

mixed The value that was passed originally to the validator when the validation was started. Because the validator traverses the object graph, the value at which the violation occurs is not necessarily the value that was originally validated.

Overrides ConstraintViolationInterface::getRoot

File

vendor/symfony/validator/ConstraintViolation.php, line 195

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

public function getRoot() {
  return $this->root;
}