Completed
Push — develop ( f07ae4...5325d9 )
by Sam
05:38 queued 03:06
created

ExistsQuery::getField()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php namespace Nord\Lumen\Elasticsearch\Search\Query\TermLevel;
2
3
/**
4
 * Returns documents that have at least one non-null value in the original field.
5
 *
6
 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html
7
 */
8
class ExistsQuery extends AbstractQuery
9
{
10
11
    /**
12
     * @inheritdoc
13
     */
14
    public function toArray()
15
    {
16
        return ['exists' => ['field' => $this->getField()]];
17
    }
18
}
19