23
23
use GuzzleHttp \RequestOptions ;
24
24
use Symfony \Component \Serializer \Encoder \JsonEncoder ;
25
25
use Symfony \Component \Serializer \Exception \ExceptionInterface ;
26
- use Symfony \Component \Serializer \SerializerInterface ;
26
+ use Symfony \Component \Serializer \Serializer ;
27
27
use Hostinger \ApiException ;
28
28
use Hostinger \Configuration ;
29
29
use Hostinger \ObjectSerializer ;
@@ -34,7 +34,7 @@ class DomainsPortfolioApi
34
34
35
35
protected Configuration $ config ;
36
36
37
- protected SerializerInterface $ serializer ;
37
+ protected Serializer $ serializer ;
38
38
39
39
public function __construct (
40
40
?Configuration $ config = null ,
@@ -57,6 +57,7 @@ public function getConfig(): Configuration
57
57
*
58
58
* @throws ApiException
59
59
* @throws GuzzleException
60
+ * @throws ExceptionInterface
60
61
*/
61
62
public function disableDomainLockV1 (string $ domain )
62
63
{
@@ -84,6 +85,7 @@ public function disableDomainLockV1(string $domain)
84
85
*
85
86
* @throws ApiException
86
87
* @throws GuzzleException
88
+ * @throws ExceptionInterface
87
89
*/
88
90
public function disablePrivacyProtectionV1 (string $ domain )
89
91
{
@@ -111,6 +113,7 @@ public function disablePrivacyProtectionV1(string $domain)
111
113
*
112
114
* @throws ApiException
113
115
* @throws GuzzleException
116
+ * @throws ExceptionInterface
114
117
*/
115
118
public function enableDomainLockV1 (string $ domain )
116
119
{
@@ -138,6 +141,7 @@ public function enableDomainLockV1(string $domain)
138
141
*
139
142
* @throws ApiException
140
143
* @throws GuzzleException
144
+ * @throws ExceptionInterface
141
145
*/
142
146
public function enablePrivacyProtectionV1 (string $ domain )
143
147
{
@@ -165,6 +169,7 @@ public function enablePrivacyProtectionV1(string $domain)
165
169
*
166
170
* @throws ApiException
167
171
* @throws GuzzleException
172
+ * @throws ExceptionInterface
168
173
*/
169
174
public function getDomainDetailsV1 (string $ domain )
170
175
{
@@ -192,6 +197,7 @@ public function getDomainDetailsV1(string $domain)
192
197
*
193
198
* @throws ApiException
194
199
* @throws GuzzleException
200
+ * @throws ExceptionInterface
195
201
*/
196
202
public function getDomainListV1 ()
197
203
{
@@ -217,6 +223,7 @@ public function getDomainListV1()
217
223
*
218
224
* @throws ApiException
219
225
* @throws GuzzleException
226
+ * @throws ExceptionInterface
220
227
*/
221
228
public function purchaseNewDomainV1 (\Hostinger \Model \DomainsV1PortfolioPurchaseRequest $ domainsV1PortfolioPurchaseRequest )
222
229
{
@@ -243,6 +250,7 @@ public function purchaseNewDomainV1(\Hostinger\Model\DomainsV1PortfolioPurchaseR
243
250
*
244
251
* @throws ApiException
245
252
* @throws GuzzleException
253
+ * @throws ExceptionInterface
246
254
*/
247
255
public function updateDomainNameserversV1 (string $ domain , \Hostinger \Model \DomainsV1PortfolioUpdateNameserversRequest $ domainsV1PortfolioUpdateNameserversRequest )
248
256
{
0 commit comments