1<?php 2 3namespace FYKOS\dokuwiki\Extension\PluginNewsFeed\Renderer; 4 5use FYKOS\dokuwiki\Extension\PluginNewsFeed\Model\ModelNews; 6use helper_plugin_newsfeed; 7 8/** 9 * Class AbstractRenderer 10 * @author Michal Červeňák <miso@fykos.cz> 11 */ 12abstract class AbstractRenderer { 13 14 protected helper_plugin_newsfeed $helper; 15 16 public function __construct(helper_plugin_newsfeed $helper) { 17 $this->helper = $helper; 18 } 19 20 abstract public function renderContent(ModelNews $data, array $params): string; 21 22 abstract public function renderEditFields(array $params): string; 23 24 abstract public function render(string $innerHtml, string $formHtml, ModelNews $news): string; 25} 26