src/Transformer/Helpers/RecursiveFormatterHelper.php
public static function namespaceAsArrayKey(string $key) : string
    {
        $keys = \explode('\\', $key);
        $className = \end($keys);

        return self::camelCaseToUnderscore($className);
    }
public static function namespaceAsArrayKey(string $key) : string
    {
        $keys = \explode('\\', $key);
        $className = \end($keys);

        return self::camelCaseToUnderscore($className);
    }
public static function namespaceAsArrayKey ( string $ key ) : string { $ keys = \ explode ( '\\' , $ key ) ; $ className = \ end ( $ keys ) ; return self :: camelCaseToUnderscore ( $ className ) ; }
Given a class name will return its name without the namespace and
in under_score to be used as a key in an array.

@param string $key

@return string
Given a class name will return its name without the namespace and in under_score to be used as a key in an array .