protected function itemsToValues(IItems $items)
    {
        $values = [];
        foreach ($items as $item) {
            /** @var IItem $item */
            $valueId    = $item->get('id');
            $parsedItem = $item->parseValue();

            $values[$valueId] = \array_merge(
                [self::SELECT_RAW => $parsedItem['raw']],
                $parsedItem['text']
            );
        }

        return $values;
    }
protected function itemsToValues(IItems $items)
    {
        $values = [];
        foreach ($items as $item) {
            /** @var IItem $item */
            $valueId    = $item->get('id');
            $parsedItem = $item->parseValue();

            $values[$valueId] = \array_merge(
                [self::SELECT_RAW => $parsedItem['raw']],
                $parsedItem['text']
            );
        }

        return $values;
    }
protected function itemsToValues ( IItems $ items ) { $ values = [ ] ; foreach ( $ items as $ item ) { /** @var IItem $item */ $ valueId = $ item -> get ( 'id' ) ; $ parsedItem = $ item -> parseValue ( ) ; $ values [ $ valueId ] = \ array_merge ( [ self :: SELECT_RAW => $ parsedItem [ 'raw' ] ] , $ parsedItem [ 'text' ] ) ; } return $ values ; }
Convert the item list to values.

@param IItems $items The items to convert.

@return array
Convert the item list to values .