public function __construct(HTML\Config $htmlConfig = null) { if ($htmlConfig) { $this->htmlConfig = $htmlConfig; } else { $this->htmlConfig = new HTML\Config(); } }