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

HasLabelsTrait::getLabelOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
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