HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/give/src/Helpers/EnqueueScript.php
<?php

namespace Give\Helpers;

/**
 * This class use to register script.
 * This class internally uses asset information to set script dependencies and version generated by @wordpress/dependency-extraction-webpack-plugin package.
 * It also handles script translation registration.
 *
 * @since 2.19.6
 */
class EnqueueScript
{
    /**
     * @since 2.19.6
     *
     * @param string $scriptId
     * @param string $scriptPath
     *
     * @return \Give\Framework\EnqueueScript
     */
    public static function make($scriptId, $scriptPath)
    {
        return new \Give\Framework\EnqueueScript(
            $scriptId,
            $scriptPath,
            GIVE_PLUGIN_DIR,
            GIVE_PLUGIN_URL,
            'give'
        );
    }
}