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);
    }