Skip to content

Commit

Permalink
Revert protected modificator for apiClient property and added getter …
Browse files Browse the repository at this point in the history
…for getSoapClient (5.x backward compatibility to access __getLastRequest and __getLastResponse for log purpose)
  • Loading branch information
artur-mietek committed Oct 9, 2023
1 parent 0f8fd91 commit 2f05119
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/GusApi/Client/GusApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,9 @@ private function getRequestHeaders(string $action, string $to): array
new \SoapHeader(self::ADDRESSING_NAMESPACE, 'To', $to),
];
}

public function getSoapClient(): \SoapClient
{
return $this->soapClient;
}
}
2 changes: 1 addition & 1 deletion src/GusApi/GusApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GusApi
protected const SERVICE_TIME_ZONE = 'Europe/Warsaw';

protected const SERVICE_STATUS_DATE_FORMAT = 'd-m-Y';
private GusApiClient $apiClient;
protected GusApiClient $apiClient;
private string $sessionId;

public function __construct(private string $userKey, string $env = 'prod', ?BuilderInterface $builder = null)
Expand Down

0 comments on commit 2f05119

Please sign in to comment.