Skip to content

Commit

Permalink
Merge pull request #122 from artur-mietek/master
Browse files Browse the repository at this point in the history
Revert protected modificator for apiClient property and added getter …
  • Loading branch information
johnzuk authored Oct 9, 2023
2 parents 0f8fd91 + 2f05119 commit 76b82ae
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 76b82ae

Please sign in to comment.