src/Bridge/NelmioApiDoc/Parser/ApiPlatformParser.php
private function getPropertyMetadata(ResourceMetadata $resourceMetadata, string $resourceClass, string $io, array $visited, array $options): array
    {
        $data = [];

        foreach ($this->propertyNameCollectionFactory->create($resourceClass, $options) as $propertyName) {
            $propertyMetadata = $this->propertyMetadataFactory->create($resourceClass, $propertyName);
            if (
                ($propertyMetadata->isReadable() && self::OUT_PREFIX === $io) ||
                ($propertyMetadata->isWritable() && self::IN_PREFIX === $io)
            ) {
                $normalizedPropertyName = $this->nameConverter ? $this->nameConverter->normalize($propertyName, $resourceClass) : $propertyName;
                $data[$normalizedPropertyName] = $this->parseProperty($resourceMetadata, $propertyMetadata, $io, null, $visited);
            }
        }

        return $data;
    }
private function getPropertyMetadata(ResourceMetadata $resourceMetadata, string $resourceClass, string $io, array $visited, array $options): array
    {
        $data = [];

        foreach ($this->propertyNameCollectionFactory->create($resourceClass, $options) as $propertyName) {
            $propertyMetadata = $this->propertyMetadataFactory->create($resourceClass, $propertyName);
            if (
                ($propertyMetadata->isReadable() && self::OUT_PREFIX === $io) ||
                ($propertyMetadata->isWritable() && self::IN_PREFIX === $io)
            ) {
                $normalizedPropertyName = $this->nameConverter ? $this->nameConverter->normalize($propertyName, $resourceClass) : $propertyName;
                $data[$normalizedPropertyName] = $this->parseProperty($resourceMetadata, $propertyMetadata, $io, null, $visited);
            }
        }

        return $data;
    }
private function getPropertyMetadata ( ResourceMetadata $ resourceMetadata , string $ resourceClass , string $ io , array $ visited , array $ options ) : array { $ data = [ ] ; foreach ( $ this -> propertyNameCollectionFactory -> create ( $ resourceClass , $ options ) as $ propertyName ) { $ propertyMetadata = $ this -> propertyMetadataFactory -> create ( $ resourceClass , $ propertyName ) ; if ( ( $ propertyMetadata -> isReadable ( ) && self :: OUT_PREFIX === $ io ) || ( $ propertyMetadata -> isWritable ( ) && self :: IN_PREFIX === $ io ) ) { $ normalizedPropertyName = $ this -> nameConverter ? $ this -> nameConverter -> normalize ( $ propertyName , $ resourceClass ) : $ propertyName ; $ data [ $ normalizedPropertyName ] = $ this -> parseProperty ( $ resourceMetadata , $ propertyMetadata , $ io , null , $ visited ) ; } } return $ data ; }
Returns a property metadata.

@param string[] $visited
@param string[] $options
Returns a property metadata .