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