src/Utilities.php
public static function getClassName($className)
    {
        if (is_object($className)) {
            $className = get_class($className);
        }
        $className = array_slice(explode('\\', $className), - 1);
        return $className[0];
    }
public static function getClassName($className)
    {
        if (is_object($className)) {
            $className = get_class($className);
        }
        $className = array_slice(explode('\\', $className), - 1);
        return $className[0];
    }
public static function getClassName ( $ className ) { if ( is_object ( $ className ) ) { $ className = get_class ( $ className ) ; } $ className = array_slice ( explode ( '\\' , $ className ) , - 1 ) ; return $ className [ 0 ] ; }
Get class name part of a qualified class name.

@param string|object $className
Class or object, e.g. 'Jivoo\Utilities'.
@return string Class name, e.g. 'Utilities'.
Get class name part of a qualified class name .