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));
    }
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));
    }
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 ) ) ; }
Sets the contents of the list in the option table.

@param string[] $items
Sets the contents of the list in the option table .