public function processStack($payload, PipeChainCollectionInterface $pipeChainCollection)
    {
        foreach ( $pipeChainCollection as $stage => $fallback ) {
            $payload = $this->process($payload, $stage, $fallback);
        }

        return $payload;
    }
public function processStack($payload, PipeChainCollectionInterface $pipeChainCollection)
    {
        foreach ( $pipeChainCollection as $stage => $fallback ) {
            $payload = $this->process($payload, $stage, $fallback);
        }

        return $payload;
    }
public function processStack ( $ payload , PipeChainCollectionInterface $ pipeChainCollection ) { foreach ( $ pipeChainCollection as $ stage => $ fallback ) { $ payload = $ this -> process ( $ payload , $ stage , $ fallback ) ; } return $ payload ; }
processes a PipeChainCollection with the provided payload.

@param mixed $payload
@param PipeChainCollectionInterface $pipeChainCollection
@return mixed payload
processes a PipeChainCollection with the provided payload .