src/Adapter/AdapterChain.php
public function merge(AdapterChain $adaptersChain)
    {
        $adapters = $adaptersChain->adapters->toArray(PriorityQueue::EXTR_BOTH);

        foreach ($adapters as $item) {
            $this->attach($item['data'], $item['priority']);
        }

        return $this;
    }
public function merge(AdapterChain $adaptersChain)
    {
        $adapters = $adaptersChain->adapters->toArray(PriorityQueue::EXTR_BOTH);

        foreach ($adapters as $item) {
            $this->attach($item['data'], $item['priority']);
        }

        return $this;
    }
public function merge ( AdapterChain $ adaptersChain ) { $ adapters = $ adaptersChain -> adapters -> toArray ( PriorityQueue :: EXTR_BOTH ) ; foreach ( $ adapters as $ item ) { $ this -> attach ( $ item [ 'data' ] , $ item [ 'priority' ] ) ; } return $ this ; }
Merge the adapter chain with the one given in parameter.

@param AdapterChain $adaptersChain

@return $this
Merge the adapter chain with the one given in parameter .