Completed
Pull Request — develop (#25)
by Sam
03:27 queued 34s
created

HasFields   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 26
c 0
b 0
f 0
rs 10

2 Methods

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