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 | * Pop PHP Framework (http://www.popphp.org/) |
4 | * |
5 | * @link https://github.com/popphp/popphp-framework |
6 | * @author Nick Sagona, III <dev@nolainteractive.com> |
7 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
8 | * @license http://www.popphp.org/license New BSD License |
9 | */ |
10 | |
11 | /** |
12 | * @namespace |
13 | */ |
14 | namespace Pop\View\Template; |
15 | |
16 | /** |
17 | * View template interface |
18 | * |
19 | * @category Pop |
20 | * @package Pop\View |
21 | * @author Nick Sagona, III <dev@nolainteractive.com> |
22 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
23 | * @license http://www.popphp.org/license New BSD License |
24 | * @version 4.0.0 |
25 | */ |
26 | interface TemplateInterface |
27 | { |
28 | |
29 | /** |
30 | * Get view template |
31 | * |
32 | * @return string |
33 | */ |
34 | public function getTemplate(): string; |
35 | |
36 | /** |
37 | * Set view template |
38 | * |
39 | * @param string $template |
40 | * @return TemplateInterface |
41 | */ |
42 | public function setTemplate(string $template): TemplateInterface; |
43 | |
44 | /** |
45 | * Render the view and return the output |
46 | * |
47 | * @param array $data |
48 | * @return string |
49 | */ |
50 | public function render(array $data): string; |
51 | |
52 | } |