src/Metadata/Property/Factory/SerializerPropertyMetadataFactory.php
private function getResourceSerializerGroups(string $resourceClass): array
    {
        $serializerClassMetadata = $this->serializerClassMetadataFactory->getMetadataFor($resourceClass);

        $groups = [];
        foreach ($serializerClassMetadata->getAttributesMetadata() as $serializerAttributeMetadata) {
            $groups += array_flip($serializerAttributeMetadata->getGroups());
        }

        return array_keys($groups);
    }
private function getResourceSerializerGroups(string $resourceClass): array
    {
        $serializerClassMetadata = $this->serializerClassMetadataFactory->getMetadataFor($resourceClass);

        $groups = [];
        foreach ($serializerClassMetadata->getAttributesMetadata() as $serializerAttributeMetadata) {
            $groups += array_flip($serializerAttributeMetadata->getGroups());
        }

        return array_keys($groups);
    }
private function getResourceSerializerGroups ( string $ resourceClass ) : array { $ serializerClassMetadata = $ this -> serializerClassMetadataFactory -> getMetadataFor ( $ resourceClass ) ; $ groups = [ ] ; foreach ( $ serializerClassMetadata -> getAttributesMetadata ( ) as $ serializerAttributeMetadata ) { $ groups += array_flip ( $ serializerAttributeMetadata -> getGroups ( ) ) ; } return array_keys ( $ groups ) ; }
Gets the serializer groups defined in a resource.

@return string[]
Gets the serializer groups defined in a resource .