public function make($class, $wsdl, array $config = [])
    {
        $reflectionClass = new ReflectionClass($class);

        /** @var SoapClient $client */
        $client = $reflectionClass->newInstanceArgs([ $wsdl, $config ]);

        return $client;
    }
public function make($class, $wsdl, array $config = [])
    {
        $reflectionClass = new ReflectionClass($class);

        /** @var SoapClient $client */
        $client = $reflectionClass->newInstanceArgs([ $wsdl, $config ]);

        return $client;
    }
public function make ( $ class , $ wsdl , array $ config = [ ] ) { $ reflectionClass = new ReflectionClass ( $ class ) ; /** @var SoapClient $client */ $ client = $ reflectionClass -> newInstanceArgs ( [ $ wsdl , $ config ] ) ; return $ client ; }
Makes a SoapClient instance.

@param string $class     the soapclient class to use
@param string $wsdl
@param array  $config
@return SoapClient
Makes a SoapClient instance .