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

AbstractBinaryFunctionOperation::__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
c 1
b 0
f 1
dl 0
loc 4
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
namespace PeekAndPoke\Component\Psi\Operation;
8
9
use PeekAndPoke\Component\Psi\Interfaces\BinaryFunction;
10
11
/**
12
 * AbstractBinaryFunctionOperation
13
 *
14
 * @author Karsten J. Gerber <[email protected]>
15
 */
16
abstract class AbstractBinaryFunctionOperation
17
{
18
    /** @var callable|\Closure|BinaryFunction */
19
    protected $function;
20
21
    /**
22
     * @param callable|\Closure|BinaryFunction $function
23
     */
24 18
    public function __construct($function)
25
    {
26 18
        $this->function = $function;
27 18
    }
28
}
29