propertyPath = $propertyPath; $this->value = $value; $this->constraints = $constraints; } /** * User controlled way to define a sub-property causing * the failure of a currently asserted objects. * * Useful to transport information about the nature of the error * back to higher layers. * * @return string|null */ public function getPropertyPath() { return $this->propertyPath; } /** * Get the value that caused the assertion to fail. * * @return mixed */ public function getValue() { return $this->value; } /** * Get the constraints that applied to the failed assertion. * * @return array */ public function getConstraints(): array { return $this->constraints; } }