original_string: public function setAll($items)
      {
          foreach ($items as $key => &$item) {
              if (is_array($item)) {
                  throw new \InvalidArgumentException("Array item encountered in DistributedList::setAll() [ key = $key ].");
              } else {
                  $item = (string)$item;
              }
          }
  
          Option::set($this->optionName, serialize($items));
      }
code: public function setAll($items)
      {
          foreach ($items as $key => &$item) {
              if (is_array($item)) {
                  throw new \InvalidArgumentException("Array item encountered in DistributedList::setAll() [ key = $key ].");
              } else {
                  $item = (string)$item;
              }
          }
  
          Option::set($this->optionName, serialize($items));
      }
code_tokens: public function setAll ( $ items ) { foreach ( $ items as $ key => & $ item ) { if ( is_array ( $ item ) ) { throw new \ InvalidArgumentException ( "Array item encountered in DistributedList::setAll() [ key = $key ]." ) ; } else { $ item = ( string ) $ item ; } } Option :: set ( $ this -> optionName , serialize ( $ items ) ) ; }
docstring: Sets the contents of the list in the option table.
  
  @param string[] $items
docstring_tokens: Sets the contents of the list in the option table .