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
Agent
AgentResponsesAuthErrorBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Agent
;
10
11
use
Commercetools\Api\Models\Error\AuthErrorResponse
;
12
use
Commercetools\Api\Models\Error\AuthErrorResponseBuilder
;
13
use
Commercetools\Api\Models\Error\ErrorObjectCollection
;
14
use
Commercetools\Base\Builder
;
15
use
Commercetools\Base\DateTimeImmutableCollection
;
16
use
Commercetools\Base\JsonObject
;
17
use
Commercetools\Base\JsonObjectModel
;
18
use
Commercetools\Base\MapperFactory
;
19
use stdClass;
20
24
final
class
AgentResponsesAuthErrorBuilder
implements
Builder
25
{
30
private
$statusCode;
31
36
private
$message;
37
42
private
$errors;
43
48
private
$error;
49
54
private
$error_description;
55
62
public
function
getStatusCode
()
63
{
64
return
$this->statusCode;
65
}
66
73
public
function
getMessage
()
74
{
75
return
$this->message;
76
}
77
84
public
function
getErrors
()
85
{
86
return
$this->errors;
87
}
88
95
public
function
getError
()
96
{
97
return
$this->error;
98
}
99
106
public
function
getError_description
()
107
{
108
return
$this->error_description;
109
}
110
115
public
function
withStatusCode
(?
int
$statusCode)
116
{
117
$this->statusCode = $statusCode;
118
119
return
$this;
120
}
121
126
public
function
withMessage
(?
string
$message)
127
{
128
$this->message = $message;
129
130
return
$this;
131
}
132
137
public
function
withErrors
(?
ErrorObjectCollection
$errors)
138
{
139
$this->errors = $errors;
140
141
return
$this;
142
}
143
148
public
function
withError
(?
string
$error)
149
{
150
$this->error = $error;
151
152
return
$this;
153
}
154
159
public
function
withError_description
(?
string
$error_description)
160
{
161
$this->error_description = $error_description;
162
163
return
$this;
164
}
165
166
167
public
function
build
():
AgentResponsesAuthError
168
{
169
return
new
AgentResponsesAuthErrorModel
(
170
$this->statusCode,
171
$this->message,
172
$this->errors,
173
$this->error,
174
$this->error_description
175
);
176
}
177
178
public
static
function
of
():
AgentResponsesAuthErrorBuilder
179
{
180
return
new
self
();
181
}
182
}
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder
Definition
AgentResponsesAuthErrorBuilder.php:25
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\withStatusCode
withStatusCode(?int $statusCode)
Definition
AgentResponsesAuthErrorBuilder.php:115
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\withError
withError(?string $error)
Definition
AgentResponsesAuthErrorBuilder.php:148
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\of
static of()
Definition
AgentResponsesAuthErrorBuilder.php:178
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\getError_description
getError_description()
Definition
AgentResponsesAuthErrorBuilder.php:106
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\getMessage
getMessage()
Definition
AgentResponsesAuthErrorBuilder.php:73
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\getErrors
getErrors()
Definition
AgentResponsesAuthErrorBuilder.php:84
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\getError
getError()
Definition
AgentResponsesAuthErrorBuilder.php:95
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\withError_description
withError_description(?string $error_description)
Definition
AgentResponsesAuthErrorBuilder.php:159
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\withMessage
withMessage(?string $message)
Definition
AgentResponsesAuthErrorBuilder.php:126
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\getStatusCode
getStatusCode()
Definition
AgentResponsesAuthErrorBuilder.php:62
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\build
build()
Definition
AgentResponsesAuthErrorBuilder.php:167
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorBuilder\withErrors
withErrors(?ErrorObjectCollection $errors)
Definition
AgentResponsesAuthErrorBuilder.php:137
Commercetools\Api\Models\Agent\AgentResponsesAuthErrorModel
Definition
AgentResponsesAuthErrorModel.php:24
Commercetools\Api\Models\Error\AuthErrorResponseBuilder
Definition
AuthErrorResponseBuilder.php:24
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\Agent\AgentResponsesAuthError
Definition
AgentResponsesAuthError.php:16
Commercetools\Api\Models\Error\AuthErrorResponse
Definition
AuthErrorResponse.php:16
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Agent
Definition
AgentBusinessUnitAmbiguousError.php:9
Generated by
1.9.8