getShortName(); $namespace = str_replace( __NAMESPACE__ . '\\', '', $cls->getNamespaceName() . '\\' ); if ( $namespace ) { // the left namespace after dropped root namespace $shortname = $namespace . $shortname; } return $shortname; } }