diff --git a/src/GusApi/Client/GusApiClient.php b/src/GusApi/Client/GusApiClient.php index e91fd22..bb0b893 100644 --- a/src/GusApi/Client/GusApiClient.php +++ b/src/GusApi/Client/GusApiClient.php @@ -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; + } } diff --git a/src/GusApi/GusApi.php b/src/GusApi/GusApi.php index ed5614b..4c21705 100644 --- a/src/GusApi/GusApi.php +++ b/src/GusApi/GusApi.php @@ -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)