commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AgentResponsesQuoteRequestSuccessBuilder.php
1<?php
2
3declare(strict_types=1);
10
19use stdClass;
20
25{
30 private $warnings;
31
36 private $threadId;
37
42 private $entity;
43
48 private $cartId;
49
56 public function getWarnings()
57 {
58 return $this->warnings;
59 }
60
67 public function getThreadId()
68 {
69 return $this->threadId;
70 }
71
78 public function getEntity()
79 {
80 return $this->entity instanceof QuoteRequestBuilder ? $this->entity->build() : $this->entity;
81 }
82
89 public function getCartId()
90 {
91 return $this->cartId;
92 }
93
98 public function withWarnings(?WarningObjectCollection $warnings)
99 {
100 $this->warnings = $warnings;
101
102 return $this;
103 }
104
109 public function withThreadId(?string $threadId)
110 {
111 $this->threadId = $threadId;
112
113 return $this;
114 }
115
120 public function withEntity(?QuoteRequest $entity)
121 {
122 $this->entity = $entity;
123
124 return $this;
125 }
126
131 public function withCartId(?string $cartId)
132 {
133 $this->cartId = $cartId;
134
135 return $this;
136 }
137
142 public function withEntityBuilder(?QuoteRequestBuilder $entity)
143 {
144 $this->entity = $entity;
145
146 return $this;
147 }
148
150 {
152 $this->warnings,
153 $this->threadId,
154 $this->entity instanceof QuoteRequestBuilder ? $this->entity->build() : $this->entity,
155 $this->cartId
156 );
157 }
158
160 {
161 return new self();
162 }
163}