protected function getTypes($config)
    {
        $types = array();

        if (isset($config['types'])) {
            foreach ($config['types'] as $typeConfig) {
                $types[$typeConfig['name']] = new TypeConfig(
                    $typeConfig['name'],
                    $typeConfig['mapping'],
                    $typeConfig['config']
                );
            }
        }

        return $types;
    }
protected function getTypes($config)
    {
        $types = array();

        if (isset($config['types'])) {
            foreach ($config['types'] as $typeConfig) {
                $types[$typeConfig['name']] = new TypeConfig(
                    $typeConfig['name'],
                    $typeConfig['mapping'],
                    $typeConfig['config']
                );
            }
        }

        return $types;
    }
protected function getTypes ( $ config ) { $ types = array ( ) ; if ( isset ( $ config [ 'types' ] ) ) { foreach ( $ config [ 'types' ] as $ typeConfig ) { $ types [ $ typeConfig [ 'name' ] ] = new TypeConfig ( $ typeConfig [ 'name' ] , $ typeConfig [ 'mapping' ] , $ typeConfig [ 'config' ] ) ; } } return $ types ; }
Builds TypeConfig objects for each type.

@param array $config

@return array
Builds TypeConfig objects for each type .