SchemaSuggester::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Mdiyakov\DoctrineSolrBundle\Suggester;
4
5
use Mdiyakov\DoctrineSolrBundle\Query\Suggest\SchemaSuggestQuery;
6
7
class SchemaSuggester extends AbstractSuggester
8
{
9
    /**
10
     * @var SchemaSuggestQuery
11
     */
12
    private $query;
13
14
    /**
15
     * @param SchemaSuggestQuery $query
16
     */
17
    public function __construct(SchemaSuggestQuery $query)
18
    {
19
        $this->query = $query;
20
    }
21
22
    /**
23
     * @return SchemaSuggestQuery
24
     */
25
    protected function getQuery()
26
    {
27
        return $this->query->reset();
28
    }
29
30
}