Pagekit\View\Helper\ScriptHelper::__call PHP Method

__call() public method

Proxies all method calls to the manager.
public __call ( string $method, array $args ) : mixed
$method string
$args array
return mixed
    public function __call($method, $args)
    {
        if (!is_callable($callable = [$this->scripts, $method])) {
            throw new \InvalidArgumentException(sprintf('Undefined method call "%s::%s"', get_class($this->scripts), $method));
        }
        return call_user_func_array($callable, $args);
    }