ISearchBinaryOperator.php 824 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 ISearchBinaryOperator extends ISearchOperator {
  11. /**
  12. * @since 12.0.0
  13. */
  14. public const OPERATOR_AND = 'and';
  15. /**
  16. * @since 12.0.0
  17. */
  18. public const OPERATOR_OR = 'or';
  19. /**
  20. * @since 12.0.0
  21. */
  22. public const OPERATOR_NOT = 'not';
  23. /**
  24. * The type of binary operator
  25. *
  26. * One of the ISearchBinaryOperator::OPERATOR_* constants
  27. *
  28. * @return string
  29. * @since 12.0.0
  30. */
  31. public function getType();
  32. /**
  33. * The arguments for the binary operator
  34. *
  35. * One argument for the 'not' operator and two for 'and' and 'or'
  36. *
  37. * @return ISearchOperator[]
  38. * @since 12.0.0
  39. */
  40. public function getArguments();
  41. }