Suggest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 1 1
A setQuery() 0 4 1
1
<?php
2
3
namespace PSolr\Request;
4
5
/**
6
 * @see http://wiki.apache.org/solr/Suggester
7
 *
8
 * @method \PSolr\Response\Suggestions sendRequest(\PSolr\Request\SolrClient $solr, $headers = null, array $options = array())
9
 */
10
class Suggest extends Spellcheck
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $handlerName = 'suggest';
16
17
    /**
18
     * $var string
19
     */
20
    protected $responseClass = '\PSolr\Response\Suggestions';
21
22
    /**
23
     * {@inheritDoc}
24
     */
25
    public function init() {}
26
27
    /**
28
     * @param string $query
29
     *
30
     * @return \PSolr\Request\Suggest
31
     */
32
    public function setQuery($query)
33
    {
34
        return $this->set('q', $query);
35
    }
36
}
37