1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 * (c) Arnaud Le Blanc
8 *
9 * For the full copyright and license information, please view the LICENSE
10 * file that was distributed with this source code.
11 */
12
13use Twig\Node\Node;
14
15/**
16 * Represents a template function.
17 *
18 * Use \Twig\TwigFunction instead.
19 *
20 * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
21 *
22 * @deprecated since 1.12 (to be removed in 2.0)
23 */
24interface Twig_FunctionInterface
25{
26    /**
27     * Compiles a function.
28     *
29     * @return string The PHP code for the function
30     */
31    public function compile();
32
33    public function needsEnvironment();
34
35    public function needsContext();
36
37    public function getSafe(Node $filterArgs);
38
39    public function setArguments($arguments);
40
41    public function getArguments();
42}
43