ProjectBuilder::getPipelineWithOutput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Finder\Pipelines\Builders;
4
5
use League\Pipeline\Pipeline;
6
use Operador\Contracts\StageInterface;
7
8
use Operador\Contracts\PipelineBuilder;
9
10
use Finder\Pipelines\Finder\Project;
11
12
class ProjectBuilder extends PipelineBuilder
13
{
14
    public static function getPipelineWithOutput($output)
15
    {
16
        $builder = self::makeWithOutput($output);
17
        $builder
18
            ->add(Project::makeWithOutput($builder->getOutput()));
19
20
        return $builder->build();
21
    }
22
}