public function createClient($sandBox = false)
    {
        $client = new \SoapClient($this->wsdl, array(
            'soap_version' => SOAP_1_1,
            'classmap'     => $this->classmap
        ));

        $login    = $sandBox ? self::TEST_LOGIN    : $this->login;
        $password = $sandBox ? self::TEST_PASSWORD : $this->password;

        $client->__setSOAPHeaders($this->getSecurityHeader($login, $password));

        return $client;
    }
public function createClient($sandBox = false)
    {
        $client = new \SoapClient($this->wsdl, array(
            'soap_version' => SOAP_1_1,
            'classmap'     => $this->classmap
        ));

        $login    = $sandBox ? self::TEST_LOGIN    : $this->login;
        $password = $sandBox ? self::TEST_PASSWORD : $this->password;

        $client->__setSOAPHeaders($this->getSecurityHeader($login, $password));

        return $client;
    }
public function createClient ( $ sandBox = false ) { $ client = new \ SoapClient ( $ this -> wsdl , array ( 'soap_version' => SOAP_1_1 , 'classmap' => $ this -> classmap ) ) ; $ login = $ sandBox ? self :: TEST_LOGIN : $ this -> login ; $ password = $ sandBox ? self :: TEST_PASSWORD : $ this -> password ; $ client -> __setSOAPHeaders ( $ this -> getSecurityHeader ( $ login , $ password ) ) ; return $ client ; }
Return a new instance of SoapClient

@param bool $sandBox

@return \SoapClient
Return a new instance of SoapClient