You are here

public function ValidationVisitor::getRoot in Plug 7

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

lib/Symfony/validator/Symfony/Component/Validator/ValidationVisitor.php, line 182

Class

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

Namespace

Symfony\Component\Validator

Code

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