File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+ /**
3+ * @author : Jakiboy
4+ * @package : FloatPHP
5+ * @subpackage : Interfaces Kernel Component
6+ * @version : 1.1.0
7+ * @copyright : (c) 2018 - 2024 Jihad Sinnaour <[email protected] > 8+ * @link : https://floatphp.com
9+ * @license : MIT
10+ *
11+ * This file if a part of FloatPHP Framework.
12+ */
13+
14+ namespace FloatPHP \Interfaces \Kernel ;
15+
16+ interface ViewInterface
17+ {
18+ /**
19+ * Set extended view callables.
20+ *
21+ * @param CallableInterface $callable
22+ * @return void
23+ */
24+ function setCallables (?CallableInterface $ callable = null );
25+
26+ /**
27+ * Render view.
28+ *
29+ * @param string $tpl
30+ * @param array $content
31+ * @param bool $end
32+ * @return void
33+ */
34+ function render (string $ tpl = 'default ' , array $ content = [], bool $ end = false );
35+
36+ /**
37+ * Aassign content to view.
38+ *
39+ * @param string $tpl
40+ * @param array $content
41+ * @return string
42+ */
43+ function assign (string $ tpl = 'default ' , array $ content = []) : string ;
44+ }
You can’t perform that action at this time.
0 commit comments