aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/textprocessors/Textprocessor.php
blob: 90c13479fe83e7ee206dc15b47d23f05dd4cd824 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace r7r\cms\sys\textprocessors;

/**
 * Interface Textprocessor.
 *
 * A textprocessor turns an input into HTML.
 */
interface Textprocessor
{
    public function apply(string $input): string;

    /**
     * Should this textprocessor be available to the user in the backend?
     * @return bool
     */
    public function showInBackend(): bool;
}