Search   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 70
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 70
ccs 6
cts 14
cp 0.4286
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A specialized() 0 3 1
A joining() 0 3 1
A innerHit() 0 3 1
A compound() 0 3 1
A geo() 0 3 1
A termLevel() 0 3 1
A fulltext() 0 3 1
1
<?php
2
namespace Triadev\Es\Dsl\Dsl;
3
4
use Triadev\Es\Dsl\Dsl\Query\Compound;
5
use Triadev\Es\Dsl\Dsl\Query\Fulltext;
6
use Triadev\Es\Dsl\Dsl\Query\Geo;
7
use Triadev\Es\Dsl\Dsl\Query\InnerHit;
8
use Triadev\Es\Dsl\Dsl\Query\Joining;
9
use Triadev\Es\Dsl\Dsl\Query\Specialized;
10
use Triadev\Es\Dsl\Dsl\Query\TermLevel;
11
12
class Search extends AbstractDsl
13
{
14
    /**
15
     * Term level
16
     *
17
     * @return TermLevel
18
     */
19 14
    public function termLevel() : TermLevel
20
    {
21 14
        return new TermLevel($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
22
    }
23
    
24
    /**
25
     * Fulltext
26
     *
27
     * @return Fulltext
28
     */
29 1
    public function fulltext() : Fulltext
30
    {
31 1
        return new Fulltext($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
32
    }
33
    
34
    /**
35
     * Geo
36
     *
37
     * @return Geo
38
     */
39
    public function geo() : Geo
40
    {
41
        return new Geo($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
42
    }
43
    
44
    /**
45
     * Compound
46
     *
47
     * @return Compound
48
     */
49 6
    public function compound() : Compound
50
    {
51 6
        return new Compound($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
52
    }
53
    
54
    /**
55
     * Joining
56
     *
57
     * @return Joining
58
     */
59
    public function joining() : Joining
60
    {
61
        return new Joining($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
62
    }
63
    
64
    /**
65
     * Specialized
66
     *
67
     * @return Specialized
68
     */
69
    public function specialized() : Specialized
70
    {
71
        return new Specialized($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
72
    }
73
    
74
    /**
75
     * Inner hit
76
     *
77
     * @return InnerHit
78
     */
79
    public function innerHit() : InnerHit
80
    {
81
        return new InnerHit($this->getCurrentSearch(), $this->getEsIndex(), $this->getEsType());
82
    }
83
}
84