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 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\Core\Mvc\Template\Plugin; |
6 | |
7 | use Smarty\Template; |
8 | |
9 | /** |
10 | * smarty 関数 |
11 | */ |
12 | interface ITemplateFunction |
13 | { |
14 | #region function |
15 | |
16 | /** |
17 | * 関数名取得。 |
18 | * |
19 | * @return string |
20 | */ |
21 | public function getFunctionName(): string; |
22 | |
23 | /** |
24 | * 関数処理出力。 |
25 | * |
26 | * @param array<string,string> $params |
27 | * @param Template $smarty |
28 | * @return string HTML |
29 | */ |
30 | public function functionBody(array $params, Template $smarty): string; |
31 | |
32 | #endregion |
33 | } |