. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. namespace App\Libraries\Wiki; use App\Models\Wiki\Page; abstract class Renderer { public function __construct(protected Page $page, protected string $body) { } /** * Renders the {@see App\Models\Wiki\Page::get()} representation of this wiki page. */ abstract public function render(); /** * Renders the indexable {@see App\Models\Wiki\Page::get()} representation of this wiki page. */ abstract public function renderIndexable(); }