ApiPlatform\Core\Bridge\Symfony\PropertyInfo\Metadata\Property\PropertyInfoPropertyNameCollectionFactory::create PHP Méthode

create() public méthode

public create ( string $resourceClass, array $options = [] ) : PropertyNameCollection
$resourceClass string
$options array
Résultat ApiPlatform\Core\Metadata\Property\PropertyNameCollection
    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);
    }
PropertyInfoPropertyNameCollectionFactory