Completed
Pull Request — master (#40)
by
unknown
21:56
created

DisjointPipelineBuilder::disjoin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace League\Pipeline;
4
5
6
class DisjointPipelineBuilder extends PipelineBuilder implements DisjointPipelineBuilderInterface
7
{
8
    private $parent;
9
10
    public function __construct(ForkBuilder $parent, callable $stage = null)
11
    {
12
        if($stage != null) $this->stages[] = $stage;
13
        $this->parent = $parent;
14
    }
15
16
    public function disjoin(string $tag, callable $stage = null)
17
    {
18
        return $this->parent->disjoin($tag, $stage);
19
    }
20
21
    public function join()
22
    {
23
        return $this->parent->join();
24
    }
25
}
26