Skip to content

Commit 0cdb941

Browse files
committed
Create ViewInterface.php
1 parent 4e8f4af commit 0cdb941

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

src/Kernel/ViewInterface.php

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
}

0 commit comments

Comments
 (0)