<?php
namespace App\Utils\Views; abstract class AbstractHtmlComponent { private $options = []; abstract function renderHtml(); abstract function renderJs(\Engine\Theme\JSLoader\LoaderAbstract $JSLoader); abstract function preloadCss(\Engine\Theme\CSSLoader\Complex $CSSLoader); abstract function preloadJs(\Engine\Theme\JSLoader\LoaderAbstract $JSLoader); public function setOption($key, $value) { $this->options[$key] = $value; return $this; } public function mergeOptions($values) { foreach ($values as $k=>$v) { $this->options[$k] = $v; } return $this; } public function getOption($key) { return $this->options[$key]; } } 