From e60233535b59da99529678094634d4f6fc0bb150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Rub=C3=A9l?= Date: Fri, 6 Oct 2023 13:59:22 +0200 Subject: [PATCH] Allow overriding of the SoapClient. --- src/Vies/Client.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Vies/Client.php b/src/Vies/Client.php index 2b534d1..c96a12e 100644 --- a/src/Vies/Client.php +++ b/src/Vies/Client.php @@ -15,21 +15,21 @@ class Client * * @var string */ - private $wsdl = 'https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'; + protected $wsdl = 'https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'; /** * SOAP client * * @var \SoapClient */ - private $soapClient; + protected $soapClient; /** * SOAP classmap * * @var array */ - private $classmap = [ + protected $classmap = [ 'checkVatResponse' => 'Ddeboer\Vatin\Vies\Response\CheckVatResponse' ]; @@ -73,7 +73,7 @@ public function checkVat($countryCode, $vatNumber) * * @return \SoapClient */ - private function getSoapClient() + protected function getSoapClient() { if (null === $this->soapClient) { $this->soapClient = new \SoapClient(