public static function getConvertAliasLogLevel(int $code) : int
    {
        switch ($code) {
            case Logger::ALERT:
                return Logger::ALERT;
            case Logger::CRITICAL:
                return Logger::CRITICAL;
            case E_ALL:
            case Logger::DEBUG:
                return Logger::DEBUG;
            case E_NOTICE:
            case E_USER_NOTICE:
            case E_DEPRECATED:
            case E_USER_DEPRECATED:
            case Logger::NOTICE:
                return Logger::NOTICE;
            case E_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
            case Logger::ERROR:
                return Logger::ERROR;
            case Logger::INFO:
                return Logger::INFO;
            case Logger::EMERGENCY:
                return Logger::EMERGENCY;
            case E_WARNING:
            case E_USER_WARNING:
            case E_COMPILE_WARNING:
            case Logger::WARNING:
                return Logger::WARNING;
        }

        return 0;
    }