Identity   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 3 1
1
<?php
2
/**
3
 * File was created 27.08.2015 08:44
4
 *
5
 * @author Karsten J. Gerber <[email protected]>
6
 */
7
8
namespace PeekAndPoke\Component\Psi\Psi\Map;
9
10
use PeekAndPoke\Component\Psi\BinaryFunction;
11
12
/**
13
 * Returns input without changing it
14
 *
15
 * @author Karsten J. Gerber <[email protected]>
16
 */
17
class Identity implements BinaryFunction
18
{
19
    /**
20
     * @param mixed $input
21
     * @param mixed $key
22
     *
23
     * @return mixed
24
     */
25 15
    public function __invoke($input = null, $key = null)
26
    {
27 15
        return $input;
28
    }
29
}
30