composer package updates
[openemr.git] / vendor / twig / twig / lib / Twig / TemplateInterface.php
blob457ef7d7bb330d829adf9a907ceb44e4b1645bf6
1 <?php
3 /*
4 * This file is part of Twig.
6 * (c) Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 /**
13 * Interface implemented by all compiled templates.
15 * @author Fabien Potencier <fabien@symfony.com>
17 * @deprecated since 1.12 (to be removed in 3.0)
19 interface Twig_TemplateInterface
21 const ANY_CALL = 'any';
22 const ARRAY_CALL = 'array';
23 const METHOD_CALL = 'method';
25 /**
26 * Renders the template with the given context and returns it as string.
28 * @param array $context An array of parameters to pass to the template
30 * @return string The rendered template
32 public function render(array $context);
34 /**
35 * Displays the template with the given context.
37 * @param array $context An array of parameters to pass to the template
38 * @param array $blocks An array of blocks to pass to the template
40 public function display(array $context, array $blocks = array());
42 /**
43 * Returns the bound environment for this template.
45 * @return Twig_Environment
47 public function getEnvironment();