public static function createStrictClassPath(
        $className = '')
    {
        if (is_string($className) && strlen($className) > 0) {
            // Prepend "\" if missing, to force PHP to use the global namespace.
            if ($className[0] !== '\\') {
                $className = '\\'.$className;
            }

            return $className;
        }

        return null;
    }
public static function createStrictClassPath(
        $className = '')
    {
        if (is_string($className) && strlen($className) > 0) {
            // Prepend "\" if missing, to force PHP to use the global namespace.
            if ($className[0] !== '\\') {
                $className = '\\'.$className;
            }

            return $className;
        }

        return null;
    }
public static function createStrictClassPath ( $ className = '' ) { if ( is_string ( $ className ) && strlen ( $ className ) > 0 ) { // Prepend "\" if missing, to force PHP to use the global namespace. if ( $ className [ 0 ] !== '\\' ) { $ className = '\\' . $ className ; } return $ className ; } return null ; }
Create a strict, global class path.

This helper ensures that the input is a non-empty string, and then
automatically prepends a leading `\` if missing, so that PHP understands
that the class search MUST happen only in the global namespace.

@param string $className The class name to convert.

@return string|null String if non-empty string input, otherwise `NULL`.
Create a strict global class path .