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