public function create(string $resourceClass, array $options = []) : PropertyNameCollection
{
$properties = $this->propertyInfo->getProperties($resourceClass, $options);
if (null === $properties) {
throw new RuntimeException(sprintf('There is no PropertyInfo extractor supporting the class "%s".', $resourceClass));
}
return new PropertyNameCollection($properties);
}