private function getFormattedName($class)
    {
        $class_name = (substr(strrchr(get_class($class), "\\"), 1));
        $underscored = preg_replace('/([a-z])([A-Z])/', '$1_$2', $class_name);

        return strtolower($underscored);
    }
private function getFormattedName($class)
    {
        $class_name = (substr(strrchr(get_class($class), "\\"), 1));
        $underscored = preg_replace('/([a-z])([A-Z])/', '$1_$2', $class_name);

        return strtolower($underscored);
    }
private function getFormattedName ( $ class ) { $ class_name = ( substr ( strrchr ( get_class ( $ class ) , "\\" ) , 1 ) ) ; $ underscored = preg_replace ( '/([a-z])([A-Z])/' , '$1_$2' , $ class_name ) ; return strtolower ( $ underscored ) ; }
Formats a class name for readable use in the response

@param $class Class name to format
@return string Formatted name
Formats a class name for readable use in the response