Completed
Push — master ( 1358d6...984c1e )
by Karsten
01:40
created

Identity   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10

1 Method

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