Passed
Push — sheepy/elevation-configuration ( bdeab0...bcf7bc )
by Marco
18:34
created

GetSetSearchIntrospectionTrait   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 7
c 1
b 0
f 0
dl 0
loc 36
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setIndex() 0 5 1
A getIndex() 0 3 1
A getFound() 0 3 1
1
<?php
2
3
4
namespace Firesphere\SolrSearch\Traits;
5
6
use Firesphere\SolrSearch\Indexes\BaseIndex;
7
8
trait GetSetSearchIntrospectionTrait
9
{
10
    /**
11
     * @var BaseIndex
12
     */
13
    protected $index;
14
    /**
15
     * @var array
16
     */
17
    protected $found = [];
18
19
    /**
20
     * @return BaseIndex
21
     */
22
    public function getIndex(): BaseIndex
23
    {
24
        return $this->index;
25
    }
26
27
    /**
28
     * @param mixed $index
29
     * @return $this
30
     */
31
    public function setIndex($index)
32
    {
33
        $this->index = $index;
34
35
        return $this;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getFound(): array
42
    {
43
        return $this->found;
44
    }
45
}
46