Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait HasOptionsTrait |
||
13 | { |
||
14 | /** @var array $options */ |
||
15 | private $options = []; |
||
16 | |||
17 | /** |
||
18 | * @return array |
||
19 | */ |
||
20 | 22 | public function getOptions() |
|
21 | { |
||
22 | 22 | return $this->options; |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param array $options |
||
27 | * @return $this |
||
28 | */ |
||
29 | 24 | public function setOptions($options) |
|
30 | { |
||
31 | 24 | $this->options = $options; |
|
32 | 24 | return $this; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | 2 | public function getOption($key) |
|
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param $key |
||
45 | * @param $value |
||
46 | * @return $this |
||
47 | */ |
||
48 | 2 | public function setOption($key, $value) |
|
52 | } |
||
53 | } |