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

AbstractUnaryFunctionOperation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
c 1
b 0
f 1
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 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