ValueInterface.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /**
  12. * @author Jean-François Simon <contact@jfsimon.fr>
  13. */
  14. interface ValueInterface
  15. {
  16. /**
  17. * Renders string representation of expression.
  18. *
  19. * @return string
  20. */
  21. public function render();
  22. /**
  23. * Renders string representation of pattern.
  24. *
  25. * @return string
  26. */
  27. public function renderPattern();
  28. /**
  29. * Returns value case sensitivity.
  30. *
  31. * @return bool
  32. */
  33. public function isCaseSensitive();
  34. /**
  35. * Returns expression type.
  36. *
  37. * @return int
  38. */
  39. public function getType();
  40. /**
  41. * @param string $expr
  42. *
  43. * @return ValueInterface
  44. */
  45. public function prepend($expr);
  46. /**
  47. * @param string $expr
  48. *
  49. * @return ValueInterface
  50. */
  51. public function append($expr);
  52. }