You are here

public function ValidationVisitor::getRoot in Zircon Profile 8.0

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

Returns the value at which validation was started in the object graph.

Return value

mixed The root value.

Overrides GlobalExecutionContextInterface::getRoot

See also

ExecutionContextInterface::getRoot()

File

vendor/symfony/validator/ValidationVisitor.php, line 184

Class

ValidationVisitor
Default implementation of {@link ValidationVisitorInterface} and {@link GlobalExecutionContextInterface}.

Namespace

Symfony\Component\Validator

Code

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