You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
854B

  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\debug\components\search\matchers;
  8. /**
  9. * MatcherInterface should be implemented by all matchers that are used in a filter.
  10. *
  11. * @author Mark Jebri <mark.github@yandex.ru>
  12. * @since 2.0
  13. */
  14. interface MatcherInterface
  15. {
  16. /**
  17. * Checks if the value passed matches base value.
  18. *
  19. * @param mixed $value value to be matched
  20. * @return boolean if there is a match
  21. */
  22. public function match($value);
  23. /**
  24. * Sets base value to match against
  25. *
  26. * @param mixed $value
  27. */
  28. public function setValue($value);
  29. /**
  30. * Checks if base value is set
  31. *
  32. * @return boolean if base value is set
  33. */
  34. public function hasValue();
  35. }