Completed
Branch master (25a17b)
by Karsten
02:55
created

IdentityMapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 12
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\Functions\Unary\Mapper;
8
9
use PeekAndPoke\Component\Psi\Interfaces\Functions\UnaryFunctionInterface;
10
11
/**
12
 * IdentityMap
13
 *
14
 * @author Karsten J. Gerber <[email protected]>
15
 */
16
class IdentityMapper implements UnaryFunctionInterface
17
{
18
    /**
19
     * @param mixed $input
20
     *
21
     * @return mixed
22
     */
23 1
    public function __invoke($input)
24
    {
25 1
        return $input;
26
    }
27
}
28