protected function generateRequestOptions(
        ServiceOptions $serviceOptions,
        callable $handler
    ) {
        $result = array();
        $result[Resources::ROS_LOCATION_MODE]  = $serviceOptions->getLocationMode();
        $result[Resources::ROS_STREAM]         = $serviceOptions->getIsStreaming();
        $result[Resources::ROS_DECODE_CONTENT] = $serviceOptions->getDecodeContent();
        $result[Resources::ROS_HANDLER]        = $handler;
        $result[Resources::ROS_SECONDARY_URI]  = $this->getPsrSecondaryUri();
        $result[Resources::ROS_PRIMARY_URI]    = $this->getPsrPrimaryUri();

        return $result;
    }
protected function generateRequestOptions(
        ServiceOptions $serviceOptions,
        callable $handler
    ) {
        $result = array();
        $result[Resources::ROS_LOCATION_MODE]  = $serviceOptions->getLocationMode();
        $result[Resources::ROS_STREAM]         = $serviceOptions->getIsStreaming();
        $result[Resources::ROS_DECODE_CONTENT] = $serviceOptions->getDecodeContent();
        $result[Resources::ROS_HANDLER]        = $handler;
        $result[Resources::ROS_SECONDARY_URI]  = $this->getPsrSecondaryUri();
        $result[Resources::ROS_PRIMARY_URI]    = $this->getPsrPrimaryUri();

        return $result;
    }
protected function generateRequestOptions ( ServiceOptions $ serviceOptions , callable $ handler ) { $ result = array ( ) ; $ result [ Resources :: ROS_LOCATION_MODE ] = $ serviceOptions -> getLocationMode ( ) ; $ result [ Resources :: ROS_STREAM ] = $ serviceOptions -> getIsStreaming ( ) ; $ result [ Resources :: ROS_DECODE_CONTENT ] = $ serviceOptions -> getDecodeContent ( ) ; $ result [ Resources :: ROS_HANDLER ] = $ handler ; $ result [ Resources :: ROS_SECONDARY_URI ] = $ this -> getPsrSecondaryUri ( ) ; $ result [ Resources :: ROS_PRIMARY_URI ] = $ this -> getPsrPrimaryUri ( ) ; return $ result ; }
Generate the request options using the given service options and stored
information.

@param  ServiceOptions $serviceOptions The service options used to
generate request options.
@param  callable       $handler        The handler used to send the
request.
@return array
Generate the request options using the given service options and stored information .