1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Libraries\Wiki;
7
8use App\Models\Wiki\Page;
9
10abstract class Renderer
11{
12 public function __construct(protected Page $page, protected string $body)
13 {
14 }
15
16 /**
17 * Renders the {@see App\Models\Wiki\Page::get()} representation of this wiki page.
18 */
19 abstract public function render();
20
21 /**
22 * Renders the indexable {@see App\Models\Wiki\Page::get()} representation of this wiki page.
23 */
24 abstract public function renderIndexable();
25}