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    const TYPE_QUERY = 'query';
13    const TYPE_AGGREGATION = 'aggregation';
14    const TYPE_SUGGEST = 'suggest';
15
16    /**
17     * must return type for QueryBuilder usage.
18     *
19     * @return string
20     */
21    public function getType(): string;
22}
23