Completed
Push — develop ( 5325d9...9f3a91 )
by Sam
11s
created

HasFields::getFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
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 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