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

GetSetSearchIntrospectionTrait::setIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 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