BothValues::merge()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Graze\ArrayMerger\ValueMerger;
4
5
/**
6
 * This replicates the functionality of array_merge_recursive. It will return an array with both values in it
7
 */
8
class BothValues implements ValueMergerInterface
9
{
10
    use InvokeMergeTrait;
11
12
    /**
13
     * @param mixed $value1
14
     * @param mixed $value2
15
     *
16
     * @return array|mixed
17
     */
18 2
    public function merge($value1, $value2)
19
    {
20 2
        return [$value1, $value2];
21
    }
22
}
23