NFePHP\Common\Soap\CurlSoap::__construct PHP Метод

__construct() публичный Метод

__construct
public __construct ( string $priKeyPath = '', string $pubKeyPath = '', string $certKeyPath = '', string $timeout = 10, integer $sslProtocol )
$priKeyPath string path para a chave privada
$pubKeyPath string path para a chave publica
$certKeyPath string path para o certificado
$timeout string tempo de espera da resposta do webservice
$sslProtocol integer
    public function __construct($priKeyPath = '', $pubKeyPath = '', $certKeyPath = '', $timeout = 10, $sslProtocol = 0)
    {
        $this->priKeyPath = $priKeyPath;
        $this->pubKeyPath = $pubKeyPath;
        $this->certKeyPath = $certKeyPath;
        $this->soapTimeout = $timeout;
        if ($sslProtocol < 0 || $sslProtocol > 6) {
            $msg = "O protocolo SSL pode estar entre 0 e seis, inclusive, mas não além desses números.";
            throw new Exception\InvalidArgumentException($msg);
        }
        $this->sslProtocol = $sslProtocol;
        if (!is_file($priKeyPath) || !is_file($pubKeyPath) || !is_file($certKeyPath) || !is_numeric($timeout)) {
            $msg = "Alguns dos certificados não foram encontrados ou o timeout pode não ser numérico.";
            throw new Exception\InvalidArgumentException($msg);
        }
    }