You are here

public function ExecutionContextInterface::getRoot in Plug 7

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

The validator, when given an object, traverses the properties and related objects and their properties. The root of the validation is the object from which the traversal started.

The current value is returned by {@link getValue}.

Return value

mixed The root value of the validation.

2 methods override ExecutionContextInterface::getRoot()
ExecutionContext::getRoot in lib/Symfony/validator/Symfony/Component/Validator/ExecutionContext.php
Returns the value at which validation was started in the object graph.
ExecutionContext::getRoot in lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php
Returns the value at which validation was started in the object graph.

File

lib/Symfony/validator/Symfony/Component/Validator/ExecutionContextInterface.php, line 223

Class

ExecutionContextInterface
Stores the validator's state during validation.

Namespace

Symfony\Component\Validator

Code

public function getRoot();