Completed
Pull Request — develop (#85)
by Sam
04:06 queued 01:52
created

HasTieBreaker::assertTieBreaker()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace Nord\Lumen\Elasticsearch\Search\Traits;
4
5
/**
6
 * Trait HasTieBreaker
7
 * @package Nord\Lumen\Elasticsearch\Search\Traits
8
 */
9
trait HasTieBreaker
10
{
11
12
    /**
13
     * @var ?float
14
     */
15
    protected $tieBreaker;
16
17
    /**
18
     * @param float $tieBreaker
19
     *
20
     * @return $this
21
     */
22
    public function setTieBreaker(float $tieBreaker)
23
    {
24
        $this->tieBreaker = $tieBreaker;
25
26
        return $this;
27
    }
28
29
    /**
30
     * @return float
31
     */
32
    public function getTieBreaker()
33
    {
34
        return $this->tieBreaker;
35
    }
36
}
37