Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Dec 6, 2023
1 parent 0de60c5 commit d970686
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 15 additions & 0 deletions libs/ONVIF.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class ONVIFsoapClient extends \SoapClient
private $User;
private $Pass;
private $Options;
private $__last_request_headers;
private $__last_response_headers;

public function __construct(string $wsdl, array $options = [])
{
Expand All @@ -24,7 +26,20 @@ public function __construct(string $wsdl, array $options = [])
$this->User = '';
}
$this->Options = $options;
$this->__last_request_headers = null;
$this->__last_response_headers = null;
}

public function __getLastRequestHeaders()
{
return $this->__last_request_headers;
}

public function __getLastResponseHeaders()
{
return $this->__last_response_headers;
}

public function __doRequest($request, $location, $action, $version, $one_way = false)
{
$headers = [
Expand Down
1 change: 0 additions & 1 deletion libs/wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace ONVIF
{

/**
* WSDL Files
*/
Expand Down

0 comments on commit d970686

Please sign in to comment.