IntermediateContext::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created by gerk on 02.12.17 10:13
4
 */
5
6
namespace PeekAndPoke\Component\Psi\Solver;
7
8
/**
9
 *
10
 *
11
 * @author Karsten J. Gerber <[email protected]>
12
 */
13
class IntermediateContext
14
{
15
    /**
16
     * A storage where each operation can store custom data
17
     *
18
     * @var \SplObjectStorage
19
     */
20
    public $memory;
21
22
    /**
23
     * Written by Intermediate operations to indicate whether an element of the stream is to be used
24
     *
25
     * @var bool
26
     */
27
    public $outUseItem = true;
28
29
    /**
30
     * Written by Intermediate operations to indicate whether to continue with the next element or not
31
     *
32
     * @var bool
33
     */
34
    public $outCanContinue = true;
35
36 100
    public function __construct()
37
    {
38 100
        $this->memory = new \SplObjectStorage();
39 100
    }
40
}
41