ValueInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Finder\Expression;
  11. @trigger_error('The '.__NAMESPACE__.'\ValueInterface interface is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED);
  12. /**
  13. * @author Jean-François Simon <contact@jfsimon.fr>
  14. */
  15. interface ValueInterface
  16. {
  17. /**
  18. * Renders string representation of expression.
  19. *
  20. * @return string
  21. */
  22. public function render();
  23. /**
  24. * Renders string representation of pattern.
  25. *
  26. * @return string
  27. */
  28. public function renderPattern();
  29. /**
  30. * Returns value case sensitivity.
  31. *
  32. * @return bool
  33. */
  34. public function isCaseSensitive();
  35. /**
  36. * Returns expression type.
  37. *
  38. * @return int
  39. */
  40. public function getType();
  41. /**
  42. * @param string $expr
  43. *
  44. * @return $this
  45. */
  46. public function prepend($expr);
  47. /**
  48. * @param string $expr
  49. *
  50. * @return $this
  51. */
  52. public function append($expr);
  53. }