commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AgentResponsesErrorResponseBuilder.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 $threadId;
49
56 public function getStatusCode()
57 {
58 return $this->statusCode;
59 }
60
67 public function getMessage()
68 {
69 return $this->message;
70 }
71
79 public function getErrors()
80 {
81 return $this->errors;
82 }
83
90 public function getThreadId()
91 {
92 return $this->threadId;
93 }
94
99 public function withStatusCode(?int $statusCode)
100 {
101 $this->statusCode = $statusCode;
102
103 return $this;
104 }
105
110 public function withMessage(?string $message)
111 {
112 $this->message = $message;
113
114 return $this;
115 }
116
121 public function withErrors(?ErrorObjectCollection $errors)
122 {
123 $this->errors = $errors;
124
125 return $this;
126 }
127
132 public function withThreadId(?string $threadId)
133 {
134 $this->threadId = $threadId;
135
136 return $this;
137 }
138
139
141 {
143 $this->statusCode,
144 $this->message,
145 $this->errors,
146 $this->threadId
147 );
148 }
149
150 public static function of(): AgentResponsesErrorResponseBuilder
151 {
152 return new self();
153 }
154}