You are here

public function GlobalExecutionContextInterface::getRoot in Plug 7

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

Return value

mixed The root value.

See also

ExecutionContextInterface::getRoot()

2 methods override GlobalExecutionContextInterface::getRoot()
StubGlobalExecutionContext::getRoot in lib/Symfony/validator/Symfony/Component/Validator/Tests/Fixtures/StubGlobalExecutionContext.php
Returns the value at which validation was started in the object graph.
ValidationVisitor::getRoot in lib/Symfony/validator/Symfony/Component/Validator/ValidationVisitor.php
Returns the value at which validation was started in the object graph.

File

lib/Symfony/validator/Symfony/Component/Validator/GlobalExecutionContextInterface.php, line 49

Class

GlobalExecutionContextInterface
Stores the node-independent state of a validation run.

Namespace

Symfony\Component\Validator

Code

public function getRoot();