Passed
Push — master ( 3c0766...793f0f )
by Chris
05:28
created

HasLabelsTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 31
ccs 0
cts 8
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setLabelOptions() 0 5 1
A getLabelOptions() 0 3 1
1
<?php
2
3
namespace WebTheory\Saveyour\Concerns;
4
5
trait HasLabelsTrait
6
{
7
    use LabelMaker;
8
9
    /**
10
     * @var array
11
     */
12
    protected $labelOptions = [];
13
14
    /**
15
     * Get the value of labelOptions
16
     *
17
     * @return array
18
     */
19
    public function getLabelOptions(): array
20
    {
21
        return $this->labelOptions;
22
    }
23
24
    /**
25
     * Set the value of labelOptions
26
     *
27
     * @param array $labelOptions
28
     *
29
     * @return self
30
     */
31
    public function setLabelOptions(array $labelOptions)
32
    {
33
        $this->labelOptions = $labelOptions;
34
35
        return $this;
36
    }
37
}
38