Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Jingga |
4 | * |
5 | * PHP Version 8.1 |
6 | * |
7 | * @package phpOMS\Contract |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace phpOMS\Contract; |
16 | |
17 | /** |
18 | * Make a class renderable. |
19 | * |
20 | * This is primarily used for classes that provide formatted output or output, |
21 | * that get rendered. |
22 | * |
23 | * @package phpOMS\Contract |
24 | * @license OMS License 2.0 |
25 | * @link https://jingga.app |
26 | * @since 1.0.0 |
27 | */ |
28 | interface RenderableInterface |
29 | { |
30 | /** |
31 | * Get the evaluated contents of the object. |
32 | * |
33 | * @param mixed ...$data Data to pass to renderer |
34 | * |
35 | * @return string Returns rendered output |
36 | * |
37 | * @since 1.0.0 |
38 | */ |
39 | public function render(mixed ...$data) : string; |
40 | } |