protected function loadScript($settings)
    {
        if ($this->scripts !== null) {
            $this->scripts->add($settings);
        }

        return $this;
    }
protected function loadScript($settings)
    {
        if ($this->scripts !== null) {
            $this->scripts->add($settings);
        }

        return $this;
    }
protected function loadScript ( $ settings ) { if ( $ this -> scripts !== null ) { $ this -> scripts -> add ( $ settings ) ; } return $ this ; }
Add a script

@param \Laranix\Themer\ResourceSettings|array|null $settings
@return $this
@throws \Laranix\Support\Exception\InvalidInstanceException
@throws \Laranix\Support\Exception\InvalidTypeException
Add a script