src/ClientBuilder.php
public function build()
    {
        $soapClient = (new Factory)->getClient($this->getEndpoint(), $this->getSoapOptions());

        $params['user_id'] = $this->userId;
        $params['agent_code'] = $this->agentCode;
        $params['agent_seq'] = $this->agentSeq;
        $client = new $this->client($soapClient, $params);

        if ($this->log) {
            //
        }

        return $client;
    }
public function build()
    {
        $soapClient = (new Factory)->getClient($this->getEndpoint(), $this->getSoapOptions());

        $params['user_id'] = $this->userId;
        $params['agent_code'] = $this->agentCode;
        $params['agent_seq'] = $this->agentSeq;
        $client = new $this->client($soapClient, $params);

        if ($this->log) {
            //
        }

        return $client;
    }
public function build ( ) { $ soapClient = ( new Factory ) -> getClient ( $ this -> getEndpoint ( ) , $ this -> getSoapOptions ( ) ) ; $ params [ 'user_id' ] = $ this -> userId ; $ params [ 'agent_code' ] = $ this -> agentCode ; $ params [ 'agent_seq' ] = $ this -> agentSeq ; $ client = new $ this -> client ( $ soapClient , $ params ) ; if ( $ this -> log ) { // } return $ client ; }
Build a new client's instance

@return Client
Build a new client s instance