Try get_called_class() instead.