Pagekit\View\Helper\ScriptHelper::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( Pagekit\View\Asset\AssetManager $scripts = null )
$scripts Pagekit\View\Asset\AssetManager
    public function __construct(AssetManager $scripts = null)
    {
        $this->scripts = $scripts ?: new AssetManager();
    }