HasValue   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 5
c 1
b 0
f 0
dl 0
loc 26
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getValue() 0 3 1
A setValue() 0 5 1
1
<?php
2
3
namespace Nord\Lumen\Elasticsearch\Search\Query\Traits;
4
5
/**
6
 * Trait HasValue
7
 * @package Nord\Lumen\Elasticsearch\Search\Query\Traits
8
 */
9
trait HasValue
10
{
11
12
    /**
13
     * @var mixed the value to query for.
14
     */
15
    protected $value;
16
17
    /**
18
     * @return mixed
19
     */
20
    public function getValue()
21
    {
22
        return $this->value;
23
    }
24
25
    /**
26
     * @param mixed $value
27
     *
28
     * @return $this
29
     */
30
    public function setValue($value)
31
    {
32
        $this->value = $value;
33
34
        return $this;
35
    }
36
}
37