private function parseResourceTypes($ramlData)
    {
        if (isset($ramlData['resourceTypes'])) {
            $keyedResourceTypes = [];
            foreach ($ramlData['resourceTypes'] as $resourceType) {
                foreach ($resourceType as $k => $t) {
                    $keyedResourceTypes[$k] = $t;
                }
            }

            foreach ($ramlData as $key => $value) {
                if (\mb_strpos($key, '/') === 0) {
                    $name = (isset($value['displayName'])) ? $value['displayName'] : \mb_substr($key, 1);
                    $ramlData[$key] = $this->replaceTypes($value, $keyedResourceTypes, $key, $name, $key);
                }
            }
        }

        return $ramlData;
    }
private function parseResourceTypes($ramlData)
    {
        if (isset($ramlData['resourceTypes'])) {
            $keyedResourceTypes = [];
            foreach ($ramlData['resourceTypes'] as $resourceType) {
                foreach ($resourceType as $k => $t) {
                    $keyedResourceTypes[$k] = $t;
                }
            }

            foreach ($ramlData as $key => $value) {
                if (\mb_strpos($key, '/') === 0) {
                    $name = (isset($value['displayName'])) ? $value['displayName'] : \mb_substr($key, 1);
                    $ramlData[$key] = $this->replaceTypes($value, $keyedResourceTypes, $key, $name, $key);
                }
            }
        }

        return $ramlData;
    }
private function parseResourceTypes ( $ ramlData ) { if ( isset ( $ ramlData [ 'resourceTypes' ] ) ) { $ keyedResourceTypes = [ ] ; foreach ( $ ramlData [ 'resourceTypes' ] as $ resourceType ) { foreach ( $ resourceType as $ k => $ t ) { $ keyedResourceTypes [ $ k ] = $ t ; } } foreach ( $ ramlData as $ key => $ value ) { if ( \ mb_strpos ( $ key , '/' ) === 0 ) { $ name = ( isset ( $ value [ 'displayName' ] ) ) ? $ value [ 'displayName' ] : \ mb_substr ( $ key , 1 ) ; $ ramlData [ $ key ] = $ this -> replaceTypes ( $ value , $ keyedResourceTypes , $ key , $ name , $ key ) ; } } } return $ ramlData ; }
Parse the resource types


@return array
Parse the resource types