public static function soap(string $login, string $password): TurboSmsSoapAdapter
    {
        $responseParser = (new ResponseParserFactory())->create();
        $soapClient = (new SoapClientFactory())->create();
        $configuration = new Configuration($login, $password);
        $authenticator = new TurboSmsSoapAuthenticator($soapClient, $configuration, $responseParser);

        return new TurboSmsSoapAdapter($soapClient, $responseParser, $authenticator);
    }
public static function soap(string $login, string $password): TurboSmsSoapAdapter
    {
        $responseParser = (new ResponseParserFactory())->create();
        $soapClient = (new SoapClientFactory())->create();
        $configuration = new Configuration($login, $password);
        $authenticator = new TurboSmsSoapAuthenticator($soapClient, $configuration, $responseParser);

        return new TurboSmsSoapAdapter($soapClient, $responseParser, $authenticator);
    }
public static function soap ( string $ login , string $ password ) : TurboSmsSoapAdapter { $ responseParser = ( new ResponseParserFactory ( ) ) -> create ( ) ; $ soapClient = ( new SoapClientFactory ( ) ) -> create ( ) ; $ configuration = new Configuration ( $ login , $ password ) ; $ authenticator = new TurboSmsSoapAuthenticator ( $ soapClient , $ configuration , $ responseParser ) ; return new TurboSmsSoapAdapter ( $ soapClient , $ responseParser , $ authenticator ) ; }
Create the SOAP adapter for TurboSMS

@param string $login
@param string $password

@return TurboSmsSoapAdapter
Create the SOAP adapter for TurboSMS