src/ClearSaleID/Service/Connector.php
public function doRequest( $function, $parameters, $usesRegularEndpoint = true )
    {
        $client = ( $usesRegularEndpoint === true )
            ? $this->useRegularEndpoint()->getClient()
            : $this->useExtendedEndpoint()->getClient();

        $arguments = [ $function => $parameters ];
        $options   = [ 'location' => $this->getEndpoint() ];

        $this->environment->log( 'Connector@doRequest: Request', compact( 'arguments', 'options' ) );

        $response = $client->__soapCall( $function, $arguments, $options );

        $this->environment->log( 'Connector@doRequest: Response', compact( 'response' ) );

        return $response;
    }
public function doRequest( $function, $parameters, $usesRegularEndpoint = true )
    {
        $client = ( $usesRegularEndpoint === true )
            ? $this->useRegularEndpoint()->getClient()
            : $this->useExtendedEndpoint()->getClient();

        $arguments = [ $function => $parameters ];
        $options   = [ 'location' => $this->getEndpoint() ];

        $this->environment->log( 'Connector@doRequest: Request', compact( 'arguments', 'options' ) );

        $response = $client->__soapCall( $function, $arguments, $options );

        $this->environment->log( 'Connector@doRequest: Response', compact( 'response' ) );

        return $response;
    }
public function doRequest ( $ function , $ parameters , $ usesRegularEndpoint = true ) { $ client = ( $ usesRegularEndpoint === true ) ? $ this -> useRegularEndpoint ( ) -> getClient ( ) : $ this -> useExtendedEndpoint ( ) -> getClient ( ) ; $ arguments = [ $ function => $ parameters ] ; $ options = [ 'location' => $ this -> getEndpoint ( ) ] ; $ this -> environment -> log ( 'Connector@doRequest: Request' , compact ( 'arguments' , 'options' ) ) ; $ response = $ client -> __soapCall ( $ function , $ arguments , $ options ) ; $ this -> environment -> log ( 'Connector@doRequest: Response' , compact ( 'response' ) ) ; return $ response ; }
@param  string $function
@param         $parameters
@param  bool   $usesRegularEndpoint

@return mixed
@param string $function @param $parameters @param bool $usesRegularEndpoint