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

ConfiguratorTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 2
cbo 0
dl 0
loc 29
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configureIndex() 0 4 1
A configureType() 0 4 1
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