src/Pipeline/Simple.php
public function pipe($stage)
    {
        $pipeline = clone $this;
        $this->handleStage($pipeline->stages, $stage);

        return $pipeline;
    }
public function pipe($stage)
    {
        $pipeline = clone $this;
        $this->handleStage($pipeline->stages, $stage);

        return $pipeline;
    }
public function pipe ( $ stage ) { $ pipeline = clone $ this ; $ this -> handleStage ( $ pipeline -> stages , $ stage ) ; return $ pipeline ; }
Create a new pipeline with an appended stage.

@param Pipeline|Stage|callable $stage
@return static
Create a new pipeline with an appended stage .