src/Didww/API2/PSTNNetwork.php
public static function updateNetworks($networks = array())
    {
        $request = array();

        foreach ($networks as $network) {
            if ($network instanceof \Didww\API2\PSTNNetwork) {

                $request[] = array(
                    "network_prefix" => trim($network->getNetworkPrefix()),
                    "sell_rate" => $network->getSellRate()
                );


            } else {
                throw  new PSTNNetworkException("PSTNNetwork expected but type " .
                    \Didww\Utils\Util::getType($network) .
                    " found");
            }
        }


        self::updateNetworksFromArray($request);
    }
public static function updateNetworks($networks = array())
    {
        $request = array();

        foreach ($networks as $network) {
            if ($network instanceof \Didww\API2\PSTNNetwork) {

                $request[] = array(
                    "network_prefix" => trim($network->getNetworkPrefix()),
                    "sell_rate" => $network->getSellRate()
                );


            } else {
                throw  new PSTNNetworkException("PSTNNetwork expected but type " .
                    \Didww\Utils\Util::getType($network) .
                    " found");
            }
        }


        self::updateNetworksFromArray($request);
    }
update pstn rates from pstnnetworks collection
@link http://open.didww.com/index.php/3._Update_PSTN_Rates
@param \Didww\API2\PSTNNetwork[] $networks