src/LdapTools/Schema/Parser/SchemaYamlParser.php
protected function parseConverterMap(array $objectSchema)
    {
        $converterMap = [];

        if (array_key_exists('converters', $objectSchema)) {
            foreach ($objectSchema['converters'] as $converter => $attributes) {
                if (is_array($attributes)) {
                    foreach ($attributes as $attribute) {
                        $converterMap[$attribute] = $converter;
                    }
                } elseif (is_string($attributes)) {
                    $converterMap[$attributes] = $converter;
                }
            }
        }

        return $converterMap;
    }
protected function parseConverterMap(array $objectSchema)
    {
        $converterMap = [];

        if (array_key_exists('converters', $objectSchema)) {
            foreach ($objectSchema['converters'] as $converter => $attributes) {
                if (is_array($attributes)) {
                    foreach ($attributes as $attribute) {
                        $converterMap[$attribute] = $converter;
                    }
                } elseif (is_string($attributes)) {
                    $converterMap[$attributes] = $converter;
                }
            }
        }

        return $converterMap;
    }
protected function parseConverterMap ( array $ objectSchema ) { $ converterMap = [ ] ; if ( array_key_exists ( 'converters' , $ objectSchema ) ) { foreach ( $ objectSchema [ 'converters' ] as $ converter => $ attributes ) { if ( is_array ( $ attributes ) ) { foreach ( $ attributes as $ attribute ) { $ converterMap [ $ attribute ] = $ converter ; } } elseif ( is_string ( $ attributes ) ) { $ converterMap [ $ attributes ] = $ converter ; } } } return $ converterMap ; }
Parse the converters section of an object schema definition to generate the attribute converter map.

@param array $objectSchema
@return array
Parse the converters section of an object schema definition to generate the attribute converter map .