Completed
Push — master ( 028b55...c232a2 )
by Jean
08:31 queued 03:12
created

ConfiguratorTrait::configureIndex()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
namespace Jeancsil\FlightSpy\Service\ElasticSearch;
3
4
/**
5
 * @author Jean Silva <[email protected]>
6
 * @license MIT
7
 */
8
trait ConfiguratorTrait
9
{
10
    /**
11
     * @var string
12
     */
13
    protected $indexName;
14
15
    /**
16
     * @var string
17
     */
18
    protected $typeName;
19
20
21
    /**
22
     * @param $indexName
23
     */
24
    public function configureIndex($indexName)
25
    {
26
        $this->indexName = $indexName;
27
    }
28
29
    /**
30
     * @param string $typeName
31
     */
32
    public function configureType($typeName)
33
    {
34
        $this->typeName = $typeName;
35
    }
36
}
37