FunctionInterface.php 807 B

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