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);
}
}