Passed
Pull Request — master (#4)
by Gordon
08:08
created

SearchResults::setIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
/**
4
 * Created by PhpStorm.
5
 * User: gordon
6
 * Date: 24/3/2561
7
 * Time: 20:36 น.
8
 */
9
10
namespace Suilven\FreeTextSearch\Container;
11
12
class SearchResults
13
{
14
15
    private $facets;
16
17
    /** @var string */
18
    private $index;
19
20
    private $page;
21
22
    private $pageSize;
0 ignored issues
show
introduced by
The private property $pageSize is not used, and could be removed.
Loading history...
23
24
    private string $query;
25
26
    private $results;
27
28
29
    /** @var float the time in seconds */
30
    private $time;
31
32
33
34
    public function setFacets($newFacets)
35
    {
36
        $this->facets = $newFacets;
37
    }
38
39
    public function setIndex(string $newIndex): void
40
    {
41
        $this->index = $newIndex;
42
    }
43
44
    public function setPage($newPage)
45
    {
46
        $this->page = $newPage;
47
    }
48
49
    public function setPageSize($newPage)
50
    {
51
        $this->page = $newPage;
52
    }
53
54
    public function setQuery($newQuery)
55
    {
56
        $this->query = $newQuery;
57
    }
58
59
60
    public function setResults($newResults)
61
    {
62
        $this->results = $newResults;
63
    }
64
65
66
    public function setTime($newTime)
67
    {
68
        $this->time = $newTime;
69
    }
70
}
71