private function prepareItems()
    {
        $itens = array();

        if($this->_detailsTransactionByCode->getItemCount() > 0) {
            foreach ($this->_detailsTransactionByCode->getItems() as $item)
            {
                $itens[] = array(
                    'id'            => $item->getId(),
                    'description'   => $item->getDescription(),
                    'quantity'      => $item->getQuantity(),
                    'amount'        => $item->getAmount(),
                    'weight'        => $item->getWeight(),
                    'shippingCost'  => $item->getShippingCost()
                );
            }
        }
        return $itens;
    }
private function prepareItems()
    {
        $itens = array();

        if($this->_detailsTransactionByCode->getItemCount() > 0) {
            foreach ($this->_detailsTransactionByCode->getItems() as $item)
            {
                $itens[] = array(
                    'id'            => $item->getId(),
                    'description'   => $item->getDescription(),
                    'quantity'      => $item->getQuantity(),
                    'amount'        => $item->getAmount(),
                    'weight'        => $item->getWeight(),
                    'shippingCost'  => $item->getShippingCost()
                );
            }
        }
        return $itens;
    }
private function prepareItems ( ) { $ itens = array ( ) ; if ( $ this -> _detailsTransactionByCode -> getItemCount ( ) > 0 ) { foreach ( $ this -> _detailsTransactionByCode -> getItems ( ) as $ item ) { $ itens [ ] = array ( 'id' => $ item -> getId ( ) , 'description' => $ item -> getDescription ( ) , 'quantity' => $ item -> getQuantity ( ) , 'amount' => $ item -> getAmount ( ) , 'weight' => $ item -> getWeight ( ) , 'shippingCost' => $ item -> getShippingCost ( ) ) ; } } return $ itens ; }
Format transaction Items
@return array
Format transaction Items