Total Complexity | 6 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | trait HasMergeArgsTrait |
||
10 | { |
||
11 | |||
12 | protected $mergeTags = []; |
||
13 | |||
14 | protected $customArgs = []; |
||
15 | |||
16 | /** |
||
17 | * @return array |
||
18 | */ |
||
19 | 1 | public function getMergeTags() |
|
20 | { |
||
21 | 1 | return $this->mergeTags; |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param array $mergeTags |
||
26 | */ |
||
27 | public function setMergeTags($mergeTags) |
||
28 | { |
||
29 | $this->mergeTags = $mergeTags; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param $name |
||
34 | * @param $value |
||
35 | */ |
||
36 | 1 | public function addMergeTag($name, $value) |
|
37 | { |
||
38 | 1 | $this->mergeTags[$name] = $value; |
|
39 | 1 | } |
|
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getCustomArgs() |
||
45 | { |
||
46 | return $this->customArgs; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param array $customArgs |
||
51 | */ |
||
52 | public function setCustomArgs($customArgs) |
||
53 | { |
||
54 | $this->customArgs = $customArgs; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * @param $key |
||
59 | * @param $value |
||
60 | */ |
||
61 | public function addCustomArg($key, $value) |
||
64 | } |
||
65 | } |