FML/Script/Script.php
public function setScriptInclude($file, $namespace = null)
    {
        if ($file instanceof ScriptInclude) {
            $scriptInclude = $file;
        } else {
            $scriptInclude = new ScriptInclude($file, $namespace);
        }
        $this->includes[$scriptInclude->getNamespace()] = $scriptInclude;
        return $this;
    }
public function setScriptInclude($file, $namespace = null)
    {
        if ($file instanceof ScriptInclude) {
            $scriptInclude = $file;
        } else {
            $scriptInclude = new ScriptInclude($file, $namespace);
        }
        $this->includes[$scriptInclude->getNamespace()] = $scriptInclude;
        return $this;
    }
public function setScriptInclude ( $ file , $ namespace = null ) { if ( $ file instanceof ScriptInclude ) { $ scriptInclude = $ file ; } else { $ scriptInclude = new ScriptInclude ( $ file , $ namespace ) ; } $ this -> includes [ $ scriptInclude -> getNamespace ( ) ] = $ scriptInclude ; return $ this ; }
Set a Script Include

@api
@param string|ScriptInclude $file      Include file or ScriptInclude
@param string               $namespace Include namespace
@return static
Set a Script Include