DSL.php 388 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Elastica\QueryBuilder;
  3. /**
  4. * DSL Interface.
  5. *
  6. * @author Manuel Andreo Garcia <andreo.garcia@googlemail.com>
  7. */
  8. interface DSL
  9. {
  10. const TYPE_QUERY = 'query';
  11. const TYPE_AGGREGATION = 'aggregation';
  12. const TYPE_SUGGEST = 'suggest';
  13. /**
  14. * must return type for QueryBuilder usage.
  15. *
  16. * @return string
  17. */
  18. public function getType();
  19. }