protected function hydrateLineItems($items)
    {
        $result = array();
        if ($items == null) {
            return $result;
        }

        foreach ($items as $i => $item) {
            $result = array_merge(
                $result,
                array(
                    'Item_Name_'     . $i => $item->name,
                    'Item_Desc_'     . $i => $item->description,
                    'Item_Price_'    . $i => $this->formatAmount($item->amount),
                    'Item_Quantity_' . $i => $item->quantity,
                    'Item_SKU_'      . $i => $item->number,
                )
            );
        }

        return $result;
    }
protected function hydrateLineItems($items)
    {
        $result = array();
        if ($items == null) {
            return $result;
        }

        foreach ($items as $i => $item) {
            $result = array_merge(
                $result,
                array(
                    'Item_Name_'     . $i => $item->name,
                    'Item_Desc_'     . $i => $item->description,
                    'Item_Price_'    . $i => $this->formatAmount($item->amount),
                    'Item_Quantity_' . $i => $item->quantity,
                    'Item_SKU_'      . $i => $item->number,
                )
            );
        }

        return $result;
    }
protected function hydrateLineItems ( $ items ) { $ result = array ( ) ; if ( $ items == null ) { return $ result ; } foreach ( $ items as $ i => $ item ) { $ result = array_merge ( $ result , array ( 'Item_Name_' . $ i => $ item -> name , 'Item_Desc_' . $ i => $ item -> description , 'Item_Price_' . $ i => $ this -> formatAmount ( $ item -> amount ) , 'Item_Quantity_' . $ i => $ item -> quantity , 'Item_SKU_' . $ i => $ item -> number , ) ) ; } return $ result ; }
Converts HpsLineItem's into expected format for Cardinal

@param array<int, HpsLineItem> $items line items from order

@return array<string, string>
Converts HpsLineItem s into expected format for Cardinal