src/EnumerationBridge.php
public static function registerEnumTypes(array $types = [])
    {
        foreach ($types as $name => $callbacks) {
            [$constructor, $serializer] = (is_array($callbacks) ? $callbacks : [$callbacks, null]);

            static::registerEnumType($name, $constructor, $serializer);
        }
    }
public static function registerEnumTypes(array $types = [])
    {
        foreach ($types as $name => $callbacks) {
            [$constructor, $serializer] = (is_array($callbacks) ? $callbacks : [$callbacks, null]);

            static::registerEnumType($name, $constructor, $serializer);
        }
    }
public static function registerEnumTypes ( array $ types = [ ] ) { foreach ( $ types as $ name => $ callbacks ) { [ $ constructor , $ serializer ] = ( is_array ( $ callbacks ) ? $ callbacks : [ $ callbacks , null ] ) ; static :: registerEnumType ( $ name , $ constructor , $ serializer ) ; } }
Register a set of types with the provided constructor and serializer callables

@param array $types An Array of name => constructor or alias => [ constructor, serializer ]

@throws InvalidArgumentException
@throws DBALException
Register a set of types with the provided constructor and serializer callables