EmptyIntermediateOp::apply()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 10
cc 1
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * File was created 06.05.2015 22:18
4
 *
5
 * @author Karsten J. Gerber <[email protected]>
6
 */
7
8
namespace PeekAndPoke\Component\Psi\Operation\Intermediate;
9
10
use PeekAndPoke\Component\Psi\IntermediateOperation;
11
use PeekAndPoke\Component\Psi\Solver\IntermediateContext;
12
13
/**
14
 * EmptyIntermediateOp
15
 *
16
 * @author Karsten J. Gerber <[email protected]>
17
 */
18
class EmptyIntermediateOp implements IntermediateOperation
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23 31
    public function apply($input, $index, IntermediateContext $context)
24
    {
25 31
        $context->outUseItem     = true;
26 31
        $context->outCanContinue = true;
27
28
        // return the input unmodified
29 31
        return $input;
30
    }
31
}
32