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