commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AgentResponsesAuthErrorBuilder.php
1<?php
2
3declare(strict_types=1);
10
19use stdClass;
20
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
168 {
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}