original_string: public function append($items)
      {
          if ($items instanceof static) {
              $items = $items->toArray();
          }
          $this->items = array_merge($this->items, (array)$items);
  
          return $this;
      }
code: public function append($items)
      {
          if ($items instanceof static) {
              $items = $items->toArray();
          }
          $this->items = array_merge($this->items, (array)$items);
  
          return $this;
      }
code_tokens: public function append ( $ items ) { if ( $ items instanceof static ) { $ items = $ items -> toArray ( ) ; } $ this -> items = array_merge ( $ this -> items , ( array ) $ items ) ; return $ this ; }
docstring: Append new elements to the list.
  
  @param array|Iterator $items Items to be appended. Existing keys will be overridden with the new values.
  
  @return $this
docstring_tokens: Append new elements to the list .