public static createForUnreadablePropertyFromStdClass ( string $propertyPath ) : Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException | ||
$propertyPath | string | |
return | Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException |
/** * @inheritdoc */ public function getValue($objectOrArray, $propertyPath) { if (false === $objectOrArray instanceof \stdClass) { return $this->decoratedPropertyAccessor->getValue($objectOrArray, $propertyPath); } if (false === isset($objectOrArray->{$propertyPath})) { throw NoSuchPropertyExceptionFactory::createForUnreadablePropertyFromStdClass($propertyPath); } return $objectOrArray->{$propertyPath}; }