1 | <?php |
||
13 | class SmartyEngine extends AbstractEngine |
||
14 | { |
||
15 | private $smarty; |
||
16 | |||
17 | public function __construct(Engine $smarty) |
||
21 | |||
22 | private function getSmarty($data) |
||
31 | |||
32 | protected function generate($data) |
||
36 | |||
37 | protected function generateFromString($string, $data) |
||
41 | |||
42 | /** |
||
43 | * Passes the data to be rendered to the template engine instance. |
||
44 | * @param string $filePath |
||
45 | * @param array $data |
||
46 | * @return string |
||
47 | */ |
||
48 | public function renderFromFileTemplate(string $filePath, array $data): string |
||
52 | |||
53 | /** |
||
54 | * Passes a template string and data to be rendered to the template engine |
||
55 | * instance. |
||
56 | * @param string $string |
||
57 | * @param array $data |
||
58 | * @return string |
||
59 | */ |
||
60 | public function renderFromStringTemplate(string $string, array $data): string |
||
64 | } |
||
65 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.