summaryrefslogtreecommitdiff
path: root/vendor/ruflin/elastica/lib/Elastica/QueryBuilder/DSL.php
blob: 976de5f415518e5ca6b2494dfe1283b7aaa8ea24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
namespace Elastica\QueryBuilder;

/**
 * DSL Interface.
 *
 * @author Manuel Andreo Garcia <andreo.garcia@googlemail.com>
 */
interface DSL
{
    const TYPE_QUERY = 'query';
    const TYPE_FILTER = 'filter';
    const TYPE_AGGREGATION = 'aggregation';
    const TYPE_SUGGEST = 'suggest';

    /**
     * must return type for QueryBuilder usage.
     *
     * @return string
     */
    public function getType();
}