1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12use Twig\Environment;
13
14/**
15 * Interface implemented by all compiled templates.
16 *
17 * @author Fabien Potencier <fabien@symfony.com>
18 *
19 * @deprecated since 1.12 (to be removed in 3.0)
20 */
21interface Twig_TemplateInterface
22{
23    const ANY_CALL = 'any';
24    const ARRAY_CALL = 'array';
25    const METHOD_CALL = 'method';
26
27    /**
28     * Renders the template with the given context and returns it as string.
29     *
30     * @param array $context An array of parameters to pass to the template
31     *
32     * @return string The rendered template
33     */
34    public function render(array $context);
35
36    /**
37     * Displays the template with the given context.
38     *
39     * @param array $context An array of parameters to pass to the template
40     * @param array $blocks  An array of blocks to pass to the template
41     */
42    public function display(array $context, array $blocks = []);
43
44    /**
45     * Returns the bound environment for this template.
46     *
47     * @return Environment
48     */
49    public function getEnvironment();
50}
51