src/endobox/Box.php
public function append(Box $b) : Box
    {
        if ($this->next === null && $b->prev === null) {
            $this->next = $b;
            $b->prev = $this;
        } else {
            $this->tail()->append($b->head());
        }
        return $this;
    }
public function append(Box $b) : Box
    {
        if ($this->next === null && $b->prev === null) {
            $this->next = $b;
            $b->prev = $this;
        } else {
            $this->tail()->append($b->head());
        }
        return $this;
    }
public function append ( Box $ b ) : Box { if ( $ this -> next === null && $ b -> prev === null ) { $ this -> next = $ b ; $ b -> prev = $ this ; } else { $ this -> tail ( ) -> append ( $ b -> head ( ) ) ; } return $ this ; }
Append a Box to the end of the linked list and return this instance.
Append a Box to the end of the linked list and return this instance .