commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Error
AuthErrorResponseBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Error
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
AuthErrorResponseBuilder
implements
Builder
22
{
27
private
$statusCode;
28
33
private
$message;
34
39
private
$errors;
40
45
private
$error;
46
51
private
$error_description;
52
59
public
function
getStatusCode
()
60
{
61
return
$this->statusCode;
62
}
63
70
public
function
getMessage
()
71
{
72
return
$this->message;
73
}
74
81
public
function
getErrors
()
82
{
83
return
$this->errors;
84
}
85
92
public
function
getError
()
93
{
94
return
$this->error;
95
}
96
103
public
function
getError_description
()
104
{
105
return
$this->error_description;
106
}
107
112
public
function
withStatusCode
(?
int
$statusCode)
113
{
114
$this->statusCode = $statusCode;
115
116
return
$this;
117
}
118
123
public
function
withMessage
(?
string
$message)
124
{
125
$this->message = $message;
126
127
return
$this;
128
}
129
134
public
function
withErrors
(?
ErrorObjectCollection
$errors)
135
{
136
$this->errors = $errors;
137
138
return
$this;
139
}
140
145
public
function
withError
(?
string
$error)
146
{
147
$this->error = $error;
148
149
return
$this;
150
}
151
156
public
function
withError_description
(?
string
$error_description)
157
{
158
$this->error_description = $error_description;
159
160
return
$this;
161
}
162
163
164
public
function
build
():
AuthErrorResponse
165
{
166
return
new
AuthErrorResponseModel
(
167
$this->statusCode,
168
$this->message,
169
$this->errors,
170
$this->error,
171
$this->error_description
172
);
173
}
174
175
public
static
function
of
():
AuthErrorResponseBuilder
176
{
177
return
new
self
();
178
}
179
}
Commercetools\Api\Models\Error\AuthErrorResponseBuilder
Definition:
AuthErrorResponseBuilder.php:22
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\of
static of()
Definition:
AuthErrorResponseBuilder.php:175
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\build
build()
Definition:
AuthErrorResponseBuilder.php:164
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\getStatusCode
getStatusCode()
Definition:
AuthErrorResponseBuilder.php:59
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\getError_description
getError_description()
Definition:
AuthErrorResponseBuilder.php:103
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\getErrors
getErrors()
Definition:
AuthErrorResponseBuilder.php:81
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\getMessage
getMessage()
Definition:
AuthErrorResponseBuilder.php:70
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\withStatusCode
withStatusCode(?int $statusCode)
Definition:
AuthErrorResponseBuilder.php:112
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\withError_description
withError_description(?string $error_description)
Definition:
AuthErrorResponseBuilder.php:156
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\withError
withError(?string $error)
Definition:
AuthErrorResponseBuilder.php:145
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\withMessage
withMessage(?string $message)
Definition:
AuthErrorResponseBuilder.php:123
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\withErrors
withErrors(?ErrorObjectCollection $errors)
Definition:
AuthErrorResponseBuilder.php:134
Commercetools\Api\Models\Error\AuthErrorResponseBuilder\getError
getError()
Definition:
AuthErrorResponseBuilder.php:92
Commercetools\Api\Models\Error\AuthErrorResponseModel
Definition:
AuthErrorResponseModel.php:21
Commercetools\Api\Models\Error\ErrorObjectCollection
Definition:
ErrorObjectCollection.php:26
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Error\AuthErrorResponse
Definition:
AuthErrorResponse.php:15
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.1