Completed
Pull Request — master (#39)
by
unknown
24:39
created

DisjointAwarePipeline::join()   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
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: juzerali
5
 * Date: 09/01/18
6
 * Time: 1:58 PM
7
 */
8
9
namespace League\Pipeline;
10
11
/**
12
 * Internal class used as a wrapper around pipelines within a fork.
13
 * There should be no need to use this class directly.
14
 *
15
 * Class DisjointAwarePipeline
16
 * @package League\Pipeline
17
 */
18
class DisjointAwarePipeline extends Pipeline implements DisjointAwarePipelineInterface
19
{
20
    /**
21
     * @var Fork
22
     */
23
    public $fork;
24
25
    /**
26
     * DisjointAwarePipeline constructor.
27
     * @param Fork $fork
28
     */
29
    public function __construct(Fork $fork)
30
    {
31
        parent::__construct();
32
        $this->fork = $fork;
33
    }
34
35
    /**
36
     * @inheritdoc
37
     */
38
    public function disjoin($tag, callable $stage = null)
39
    {
40
        return $this->fork->disjoin($tag, $stage);
41
    }
42
43
    /**
44
     * @inheritdoc
45
     */
46
    public function join(callable $resolver = null)
47
    {
48
        return $this->fork->join($resolver);
49
    }
50
}
51