original_string: public function add($item)
      {
          $allItems = $this->getAll();
          if (is_array($item)) {
              $allItems = array_merge($allItems, $item);
          } else {
              $allItems[] = $item;
          }
  
          $this->setAll($allItems);
      }
code: public function add($item)
      {
          $allItems = $this->getAll();
          if (is_array($item)) {
              $allItems = array_merge($allItems, $item);
          } else {
              $allItems[] = $item;
          }
  
          $this->setAll($allItems);
      }
code_tokens: public function add ( $ item ) { $ allItems = $ this -> getAll ( ) ; if ( is_array ( $ item ) ) { $ allItems = array_merge ( $ allItems , $ item ) ; } else { $ allItems [ ] = $ item ; } $ this -> setAll ( $ allItems ) ; }
docstring: Adds one or more items to the list in the option table.
  
  @param string|array $item
docstring_tokens: Adds one or more items to the list in the option table .