public static function getUnnamespacedClassName($object)
    {
        $className = is_string($object) ? $object : get_class($object);
        $parts = explode('\\', $className);
        return end($parts);
    }
public static function getUnnamespacedClassName($object)
    {
        $className = is_string($object) ? $object : get_class($object);
        $parts = explode('\\', $className);
        return end($parts);
    }
public static function getUnnamespacedClassName ( $ object ) { $ className = is_string ( $ object ) ? $ object : get_class ( $ object ) ; $ parts = explode ( '\\' , $ className ) ; return end ( $ parts ) ; }
Returns the class name of an object without its namespace.

@param mixed|string $object
@return string
Returns the class name of an object without its namespace .