ApiPlatformBundle/Metadata/Property/Factory/EAVPropertyNameCollectionFactory.php
public function create(string $resourceClass, array $options = []): PropertyNameCollection
    {
        $propertyNameCollection = $this->propertyNameCollectionFactory->create($resourceClass, $options);
        if (is_a($resourceClass, DataInterface::class, true)) {
            $resolvedProperties = [];
            foreach ($propertyNameCollection as $propertyName) {
                if (!\in_array($propertyName, $this->ignoredAttributes, true)) {
                    $resolvedProperties[] = $propertyName;
                }
            }
            $propertyNameCollection = new PropertyNameCollection($resolvedProperties);
        }

        return $propertyNameCollection;
    }
public function create(string $resourceClass, array $options = []): PropertyNameCollection
    {
        $propertyNameCollection = $this->propertyNameCollectionFactory->create($resourceClass, $options);
        if (is_a($resourceClass, DataInterface::class, true)) {
            $resolvedProperties = [];
            foreach ($propertyNameCollection as $propertyName) {
                if (!\in_array($propertyName, $this->ignoredAttributes, true)) {
                    $resolvedProperties[] = $propertyName;
                }
            }
            $propertyNameCollection = new PropertyNameCollection($resolvedProperties);
        }

        return $propertyNameCollection;
    }
public function create ( string $ resourceClass , array $ options = [ ] ) : PropertyNameCollection { $ propertyNameCollection = $ this -> propertyNameCollectionFactory -> create ( $ resourceClass , $ options ) ; if ( is_a ( $ resourceClass , DataInterface :: class , true ) ) { $ resolvedProperties = [ ] ; foreach ( $ propertyNameCollection as $ propertyName ) { if ( ! \ in_array ( $ propertyName , $ this -> ignoredAttributes , true ) ) { $ resolvedProperties [ ] = $ propertyName ; } } $ propertyNameCollection = new PropertyNameCollection ( $ resolvedProperties ) ; } return $ propertyNameCollection ; }
Creates the property name collection for the given class and options.

@param string $resourceClass
@param array  $options

@throws ResourceClassNotFoundException

@return PropertyNameCollection
Creates the property name collection for the given class and options .