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 | use PeServer\Core\Mvc\Template\Plugin\ITemplateFunction; |
9 | |
10 | /** |
11 | * smarty 関数 |
12 | */ |
13 | interface ITemplateBlockFunction extends ITemplateFunction |
14 | { |
15 | #region function |
16 | |
17 | /** |
18 | * 関数名取得。 |
19 | * |
20 | * @return string |
21 | */ |
22 | public function getFunctionName(): string; |
23 | |
24 | /** |
25 | * 関数処理出力。 |
26 | * |
27 | * @param array<string,string> $params |
28 | * @param mixed $content |
29 | * @param Template $template |
30 | * @return string HTML |
31 | */ |
32 | public function functionBlockBody(array $params, mixed $content, Template $template, bool &$repeat): string; |
33 | |
34 | #endregion |
35 | } |