Completed
Push — master ( c9a923...7591c0 )
by Karsten
03:22
created

AbstractUnaryFunctionOperation   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 1
Bugs 0 Features 1
Metric Value
dl 0
loc 13
c 1
b 0
f 1
wmc 1
lcom 0
cbo 0
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * File was created 07.05.2015 12:08
4
 *
5
 * @author Karsten J. Gerber <[email protected]>
6
 */
7
8
namespace PeekAndPoke\Component\Psi\Operation;
9
10
use PeekAndPoke\Component\Psi\UnaryFunction;
11
12
/**
13
 * AbstractUnaryFunctionOperation
14
 *
15
 * @author Karsten J. Gerber <[email protected]>
16
 */
17
abstract class AbstractUnaryFunctionOperation
18
{
19
    /** @var callable|\Closure|UnaryFunction */
20
    protected $function;
21
22
    /**
23
     * @param callable|\Closure|UnaryFunction $function
24
     */
25 8
    public function __construct($function)
26
    {
27 8
        $this->function = $function;
28 8
    }
29
}
30