commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Error
ExtensionBadResponseErrorBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Error
;
10
11
use
Commercetools\Api\Models\Common\LocalizedString
;
12
use
Commercetools\Api\Models\Common\LocalizedStringBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use stdClass;
19
23
final
class
ExtensionBadResponseErrorBuilder
implements
Builder
24
{
29
private
$message;
30
35
private
$localizedMessage;
36
41
private
$extensionExtraInfo;
42
47
private
$extensionErrors;
48
53
private
$extensionBody;
54
59
private
$extensionStatusCode;
60
65
private
$extensionId;
66
71
private
$extensionKey;
72
79
public
function
getMessage
()
80
{
81
return
$this->message;
82
}
83
90
public
function
getLocalizedMessage
()
91
{
92
return
$this->localizedMessage instanceof
LocalizedStringBuilder
? $this->localizedMessage->
build
() : $this->localizedMessage;
93
}
94
101
public
function
getExtensionExtraInfo
()
102
{
103
return
$this->extensionExtraInfo;
104
}
105
112
public
function
getExtensionErrors
()
113
{
114
return
$this->extensionErrors;
115
}
116
123
public
function
getExtensionBody
()
124
{
125
return
$this->extensionBody;
126
}
127
134
public
function
getExtensionStatusCode
()
135
{
136
return
$this->extensionStatusCode;
137
}
138
145
public
function
getExtensionId
()
146
{
147
return
$this->extensionId;
148
}
149
156
public
function
getExtensionKey
()
157
{
158
return
$this->extensionKey;
159
}
160
165
public
function
withMessage
(?
string
$message)
166
{
167
$this->message = $message;
168
169
return
$this;
170
}
171
176
public
function
withLocalizedMessage
(?
LocalizedString
$localizedMessage)
177
{
178
$this->localizedMessage = $localizedMessage;
179
180
return
$this;
181
}
182
187
public
function
withExtensionExtraInfo
(?
JsonObject
$extensionExtraInfo)
188
{
189
$this->extensionExtraInfo = $extensionExtraInfo;
190
191
return
$this;
192
}
193
198
public
function
withExtensionErrors
(?
ExtensionErrorCollection
$extensionErrors)
199
{
200
$this->extensionErrors = $extensionErrors;
201
202
return
$this;
203
}
204
209
public
function
withExtensionBody
(?
string
$extensionBody)
210
{
211
$this->extensionBody = $extensionBody;
212
213
return
$this;
214
}
215
220
public
function
withExtensionStatusCode
(?
int
$extensionStatusCode)
221
{
222
$this->extensionStatusCode = $extensionStatusCode;
223
224
return
$this;
225
}
226
231
public
function
withExtensionId
(?
string
$extensionId)
232
{
233
$this->extensionId = $extensionId;
234
235
return
$this;
236
}
237
242
public
function
withExtensionKey
(?
string
$extensionKey)
243
{
244
$this->extensionKey = $extensionKey;
245
246
return
$this;
247
}
248
253
public
function
withLocalizedMessageBuilder
(?
LocalizedStringBuilder
$localizedMessage)
254
{
255
$this->localizedMessage = $localizedMessage;
256
257
return
$this;
258
}
259
260
public
function
build
():
ExtensionBadResponseError
261
{
262
return
new
ExtensionBadResponseErrorModel
(
263
$this->message,
264
$this->localizedMessage instanceof
LocalizedStringBuilder
? $this->localizedMessage->
build
() : $this->localizedMessage,
265
$this->extensionExtraInfo,
266
$this->extensionErrors,
267
$this->extensionBody,
268
$this->extensionStatusCode,
269
$this->extensionId,
270
$this->extensionKey
271
);
272
}
273
274
public
static
function
of
():
ExtensionBadResponseErrorBuilder
275
{
276
return
new
self
();
277
}
278
}
Commercetools\Api\Models\Common\LocalizedStringBuilder
Definition
LocalizedStringBuilder.php:20
Commercetools\Api\Models\Common\LocalizedStringBuilder\build
build()
Definition
LocalizedStringBuilder.php:42
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder
Definition
ExtensionBadResponseErrorBuilder.php:24
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getExtensionErrors
getExtensionErrors()
Definition
ExtensionBadResponseErrorBuilder.php:112
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\build
build()
Definition
ExtensionBadResponseErrorBuilder.php:260
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\of
static of()
Definition
ExtensionBadResponseErrorBuilder.php:274
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getLocalizedMessage
getLocalizedMessage()
Definition
ExtensionBadResponseErrorBuilder.php:90
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getExtensionKey
getExtensionKey()
Definition
ExtensionBadResponseErrorBuilder.php:156
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getExtensionExtraInfo
getExtensionExtraInfo()
Definition
ExtensionBadResponseErrorBuilder.php:101
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withLocalizedMessage
withLocalizedMessage(?LocalizedString $localizedMessage)
Definition
ExtensionBadResponseErrorBuilder.php:176
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getExtensionId
getExtensionId()
Definition
ExtensionBadResponseErrorBuilder.php:145
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withExtensionExtraInfo
withExtensionExtraInfo(?JsonObject $extensionExtraInfo)
Definition
ExtensionBadResponseErrorBuilder.php:187
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withMessage
withMessage(?string $message)
Definition
ExtensionBadResponseErrorBuilder.php:165
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withExtensionBody
withExtensionBody(?string $extensionBody)
Definition
ExtensionBadResponseErrorBuilder.php:209
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withExtensionId
withExtensionId(?string $extensionId)
Definition
ExtensionBadResponseErrorBuilder.php:231
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withExtensionStatusCode
withExtensionStatusCode(?int $extensionStatusCode)
Definition
ExtensionBadResponseErrorBuilder.php:220
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withLocalizedMessageBuilder
withLocalizedMessageBuilder(?LocalizedStringBuilder $localizedMessage)
Definition
ExtensionBadResponseErrorBuilder.php:253
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getExtensionBody
getExtensionBody()
Definition
ExtensionBadResponseErrorBuilder.php:123
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getExtensionStatusCode
getExtensionStatusCode()
Definition
ExtensionBadResponseErrorBuilder.php:134
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\getMessage
getMessage()
Definition
ExtensionBadResponseErrorBuilder.php:79
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withExtensionErrors
withExtensionErrors(?ExtensionErrorCollection $extensionErrors)
Definition
ExtensionBadResponseErrorBuilder.php:198
Commercetools\Api\Models\Error\ExtensionBadResponseErrorBuilder\withExtensionKey
withExtensionKey(?string $extensionKey)
Definition
ExtensionBadResponseErrorBuilder.php:242
Commercetools\Api\Models\Error\ExtensionBadResponseErrorModel
Definition
ExtensionBadResponseErrorModel.php:23
Commercetools\Api\Models\Error\ExtensionErrorCollection
Definition
ExtensionErrorCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition
LocalizedString.php:14
Commercetools\Api\Models\Error\ExtensionBadResponseError
Definition
ExtensionBadResponseError.php:16
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Error
Definition
AnonymousIdAlreadyInUseError.php:9
Generated by
1.9.8