You are here

public function ConstraintViolationInterface::getRoot in Plug 7

Returns the root element of the validation.

@api

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.

1 method overrides ConstraintViolationInterface::getRoot()
ConstraintViolation::getRoot in lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolation.php
Returns the root element of the validation.

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolationInterface.php, line 102

Class

ConstraintViolationInterface
A violation of a constraint that happened during validation.

Namespace

Symfony\Component\Validator

Code

public function getRoot();