src/Collection/Chain/SetBucketChain.php
protected function insertBetween($item, Bucket $prev, Bucket $next): void
    {
        $bucket = new ItemBucket($item);

        $prev->setNext($bucket);
        $next->setPrev($bucket);

        $bucket->setPrev($prev);
        $bucket->setNext($next);

        $this->current = $bucket;
        $this->count++;
    }
protected function insertBetween($item, Bucket $prev, Bucket $next): void
    {
        $bucket = new ItemBucket($item);

        $prev->setNext($bucket);
        $next->setPrev($bucket);

        $bucket->setPrev($prev);
        $bucket->setNext($next);

        $this->current = $bucket;
        $this->count++;
    }
protected function insertBetween ( $ item , Bucket $ prev , Bucket $ next ) : void { $ bucket = new ItemBucket ( $ item ) ; $ prev -> setNext ( $ bucket ) ; $ next -> setPrev ( $ bucket ) ; $ bucket -> setPrev ( $ prev ) ; $ bucket -> setNext ( $ next ) ; $ this -> current = $ bucket ; $ this -> count ++ ; }
Inserts an item between two nodes

@param mixed  $item The item
@param Bucket $prev The previous bucket
@param Bucket $next The next bucket

@return void
Inserts an item between two nodes