src/Bridge/NelmioApiDoc/Extractor/AnnotationsProvider/ApiPlatformProvider.php
private function getResourceHydraDoc(array $hydraApiDoc, string $prefixedShortName): ?array
    {
        if (!isset($hydraApiDoc['hydra:supportedClass']) || !\is_array($hydraApiDoc['hydra:supportedClass'])) {
            return null;
        }

        foreach ($hydraApiDoc['hydra:supportedClass'] as $supportedClass) {
            if (isset($supportedClass['@id']) && $supportedClass['@id'] === $prefixedShortName) {
                return $supportedClass;
            }
        }

        return null;
    }
private function getResourceHydraDoc(array $hydraApiDoc, string $prefixedShortName): ?array
    {
        if (!isset($hydraApiDoc['hydra:supportedClass']) || !\is_array($hydraApiDoc['hydra:supportedClass'])) {
            return null;
        }

        foreach ($hydraApiDoc['hydra:supportedClass'] as $supportedClass) {
            if (isset($supportedClass['@id']) && $supportedClass['@id'] === $prefixedShortName) {
                return $supportedClass;
            }
        }

        return null;
    }
private function getResourceHydraDoc ( array $ hydraApiDoc , string $ prefixedShortName ) : ? array { if ( ! isset ( $ hydraApiDoc [ 'hydra:supportedClass' ] ) || ! \ is_array ( $ hydraApiDoc [ 'hydra:supportedClass' ] ) ) { return null ; } foreach ( $ hydraApiDoc [ 'hydra:supportedClass' ] as $ supportedClass ) { if ( isset ( $ supportedClass [ '@id' ] ) && $ supportedClass [ '@id' ] === $ prefixedShortName ) { return $ supportedClass ; } } return null ; }
Gets Hydra documentation for the given resource.
Gets Hydra documentation for the given resource .