You are here

public function LegacyConstraintViolationBuilder::atPath in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\LegacyConstraintViolationBuilder::atPath()

Stores the property path at which the violation should be generated.

The passed path will be appended to the current property path of the execution context.

Parameters

string $path The property path:

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::atPath

File

vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php, line 76

Class

LegacyConstraintViolationBuilder
Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function atPath($path) {
  $this->propertyPath = $path;
  return $this;
}