commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
AgentResponsesRequestModel.php
1<?php
2
3declare(strict_types=1);
10
19use stdClass;
20
25{
30 protected $outputType;
31
36 protected $locale;
37
42 protected $prompt;
43
48 protected $businessUnit;
49
54 protected $store;
55
56
60 public function __construct(
61 ?string $outputType = null,
62 ?string $locale = null,
63 ?string $prompt = null,
66 ) {
67 $this->outputType = $outputType;
68 $this->locale = $locale;
69 $this->prompt = $prompt;
70 $this->businessUnit = $businessUnit;
71 $this->store = $store;
72 }
73
80 public function getOutputType()
81 {
82 if (is_null($this->outputType)) {
84 $data = $this->raw(self::FIELD_OUTPUT_TYPE);
85 if (is_null($data)) {
86 return null;
87 }
88 $this->outputType = (string) $data;
89 }
90
91 return $this->outputType;
92 }
93
100 public function getLocale()
101 {
102 if (is_null($this->locale)) {
104 $data = $this->raw(self::FIELD_LOCALE);
105 if (is_null($data)) {
106 return null;
107 }
108 $this->locale = (string) $data;
109 }
110
111 return $this->locale;
112 }
113
120 public function getPrompt()
121 {
122 if (is_null($this->prompt)) {
124 $data = $this->raw(self::FIELD_PROMPT);
125 if (is_null($data)) {
126 return null;
127 }
128 $this->prompt = (string) $data;
129 }
130
131 return $this->prompt;
132 }
133
140 public function getBusinessUnit()
141 {
142 if (is_null($this->businessUnit)) {
144 $data = $this->raw(self::FIELD_BUSINESS_UNIT);
145 if (is_null($data)) {
146 return null;
147 }
148
149 $this->businessUnit = BusinessUnitResourceIdentifierModel::of($data);
150 }
151
152 return $this->businessUnit;
153 }
154
161 public function getStore()
162 {
163 if (is_null($this->store)) {
165 $data = $this->raw(self::FIELD_STORE);
166 if (is_null($data)) {
167 return null;
168 }
169
170 $this->store = StoreResourceIdentifierModel::of($data);
171 }
172
173 return $this->store;
174 }
175
176
180 public function setOutputType(?string $outputType): void
181 {
182 $this->outputType = $outputType;
183 }
184
188 public function setLocale(?string $locale): void
189 {
190 $this->locale = $locale;
191 }
192
196 public function setPrompt(?string $prompt): void
197 {
198 $this->prompt = $prompt;
199 }
200
205 {
206 $this->businessUnit = $businessUnit;
207 }
208
213 {
214 $this->store = $store;
215 }
216}
__construct(?string $outputType=null, ?string $locale=null, ?string $prompt=null, ?BusinessUnitResourceIdentifier $businessUnit=null, ?StoreResourceIdentifier $store=null)
setBusinessUnit(?BusinessUnitResourceIdentifier $businessUnit)