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\Node\Node; 13 14/** 15 * Represents a template filter. 16 * 17 * Use \Twig\TwigFilter instead. 18 * 19 * @author Fabien Potencier <fabien@symfony.com> 20 * 21 * @deprecated since 1.12 (to be removed in 2.0) 22 */ 23interface Twig_FilterInterface 24{ 25 /** 26 * Compiles a filter. 27 * 28 * @return string The PHP code for the filter 29 */ 30 public function compile(); 31 32 public function needsEnvironment(); 33 34 public function needsContext(); 35 36 public function getSafe(Node $filterArgs); 37 38 public function getPreservesSafety(); 39 40 public function getPreEscape(); 41 42 public function setArguments($arguments); 43 44 public function getArguments(); 45} 46