StepChainBuilderFactory::createChainBuilder()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
namespace PSB\Core\Pipeline;
3
4
5
class StepChainBuilderFactory
6
{
7
    /**
8
     * @param string                $stageContextFqcn
9
     * @param PipelineModifications $pipelineModifications
10
     *
11
     * @return StepChainBuilder
12
     */
13 1
    public function createChainBuilder($stageContextFqcn, PipelineModifications $pipelineModifications)
14
    {
15 1
        return new StepChainBuilder(
16 1
            $stageContextFqcn,
17 1
            $pipelineModifications->getAdditions(),
18 1
            $pipelineModifications->getReplacements(),
19 1
            $pipelineModifications->getRemovals()
20
        );
21
    }
22
}
23