HasValue::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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