You are here

public function ConstraintViolation::getPropertyPath in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolation.php \Symfony\Component\Validator\ConstraintViolation::getPropertyPath()

Returns the property path from the root element to the violation.

Return value

string The property path indicates how the validator reached the invalid value from the root element. If the root element is a <tt>Person</tt> instance with a property "address" that contains an <tt>Address</tt> instance with an invalid property "street", the generated property path is "address.street". Property access is denoted by dots, while array access is denoted by square brackets, for example "addresses[1].street".

Overrides ConstraintViolationInterface::getPropertyPath

File

vendor/symfony/validator/ConstraintViolation.php, line 203

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

public function getPropertyPath() {
  return $this->propertyPath;
}