commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AgentResponsesSuccessBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $warnings;
29
34 private $threadId;
35
42 public function getWarnings()
43 {
44 return $this->warnings;
45 }
46
53 public function getThreadId()
54 {
55 return $this->threadId;
56 }
57
62 public function withWarnings(?WarningObjectCollection $warnings)
63 {
64 $this->warnings = $warnings;
65
66 return $this;
67 }
68
73 public function withThreadId(?string $threadId)
74 {
75 $this->threadId = $threadId;
76
77 return $this;
78 }
79
80
81 public function build(): AgentResponsesSuccess
82 {
84 $this->warnings,
85 $this->threadId
86 );
87 }
88
89 public static function of(): AgentResponsesSuccessBuilder
90 {
91 return new self();
92 }
93}