You are here

public function RecursiveContextualValidator::atPath in Plug 7

Appends the given path to the property path of the context.

If called multiple times, the path will always be reset to the context's original path with the given path appended to it.

Parameters

string $path The path to append:

Return value

ContextualValidatorInterface This validator

Overrides ContextualValidatorInterface::atPath

File

lib/Symfony/validator/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php, line 86

Class

RecursiveContextualValidator
Recursive implementation of {@link ContextualValidatorInterface}.

Namespace

Symfony\Component\Validator\Validator

Code

public function atPath($path) {
  $this->defaultPropertyPath = $this->context
    ->getPropertyPath($path);
  return $this;
}