1 | <?php |
||
24 | abstract class AbstractEngine |
||
25 | { |
||
26 | protected $left; |
||
27 | protected $right; |
||
28 | |||
29 | /** |
||
30 | * @param string $left The left delimiter |
||
31 | * @param string $right The right delimiter |
||
32 | */ |
||
33 | public function __construct($left = '{', $right = '}') |
||
38 | |||
39 | /** |
||
40 | * @param string $template The template string |
||
41 | * @param string|array $value The value the template will be rendered with |
||
42 | * |
||
43 | * @return string The rendered template |
||
44 | */ |
||
45 | abstract public function render($template, $value); |
||
46 | } |