| 1 | <?php |
||
| 8 | trait ProcessesWithPipelines |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The inbound pipeline. |
||
| 12 | * |
||
| 13 | * @var \League\Pipeline\Pipeline |
||
| 14 | */ |
||
| 15 | protected $inboundPipeline; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The outbound pipeline. |
||
| 19 | * |
||
| 20 | * @var \League\Pipeline\Pipeline |
||
| 21 | */ |
||
| 22 | protected $outboundPipeline; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Adds a new stage to the inbound pipeline. |
||
| 26 | * |
||
| 27 | * @param \League\Pipeline\StageInterface $stage |
||
| 28 | */ |
||
| 29 | public function addInboundPipelineStage(StageInterface $stage) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Adds a new stage to the outbound pipeline. |
||
| 36 | * |
||
| 37 | * @param \League\Pipeline\StageInterface $stage |
||
| 38 | */ |
||
| 39 | public function addOutboundPipelineStage(StageInterface $stage) |
||
| 43 | } |
||
| 44 |