InvokeMergeTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
3
namespace Graze\ArrayMerger\ValueMerger;
4
5
trait InvokeMergeTrait
6
{
7
    /**
8
     * @param mixed $value1
9
     * @param mixed $value2
10
     *
11
     * @return mixed
12
     */
13
    public abstract function merge($value1, $value2);
14
15
    /**
16
     * @param mixed $value1
17
     * @param mixed $value2
18
     *
19
     * @return mixed
20
     */
21 36
    public function __invoke($value1, $value2)
22
    {
23 36
        return $this->merge($value1, $value2);
24
    }
25
}
26