ExistsQuery   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 3 1
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