1
0

ISearchOperator.php 567 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Files\Search;
  7. /**
  8. * @since 12.0.0
  9. */
  10. interface ISearchOperator {
  11. /**
  12. * Get a query builder hint by name
  13. *
  14. * @param string $name
  15. * @param $default
  16. * @return mixed
  17. * @since 23.0.0
  18. */
  19. public function getQueryHint(string $name, $default);
  20. /**
  21. * Get a query builder hint
  22. *
  23. * @param string $name
  24. * @param $value
  25. * @since 23.0.0
  26. */
  27. public function setQueryHint(string $name, $value): void;
  28. }