Passed
Push — sheepy/introspection ( 69e16c...c6c7ca )
by Marco
05:28
created

SearchResultGetTrait::getTotalItems()   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 0
1
<?php
2
3
4
namespace Firesphere\SolrSearch\Traits;
5
6
use SilverStripe\ORM\ArrayList;
7
use SilverStripe\View\ArrayData;
8
use Solarium\Component\Result\Highlighting\Highlighting;
9
10
trait SearchResultGetTrait
11
{
12
    /**
13
     * @var int
14
     */
15
    protected $totalItems;
16
17
    /**
18
     * @var ArrayData
19
     */
20
    protected $facets;
21
22
    /**
23
     * @var Highlighting
24
     */
25
    protected $highlight;
26
27
    /**
28
     * @var ArrayList
29
     */
30
    protected $spellcheck;
31
32
    /**
33
     * @var string
34
     */
35
    protected $collatedSpellcheck;
36
37
    /**
38
     * @return ArrayData
39
     */
40
    public function getFacets(): ArrayData
41
    {
42
        return $this->facets;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getCollatedSpellcheck()
49
    {
50
        return $this->collatedSpellcheck;
51
    }
52
53
    /**
54
     * @return Highlighting|null
55
     */
56
    public function getHighlight(): ?Highlighting
57
    {
58
        return $this->highlight;
59
    }
60
61
    /**
62
     * @return ArrayList
63
     */
64
    public function getSpellcheck(): ArrayList
65
    {
66
        return $this->spellcheck;
67
    }
68
69
    /**
70
     * @return int
71
     */
72
    public function getTotalItems(): int
73
    {
74
        return $this->totalItems;
75
    }
76
}
77