commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
Message
StoreCreatedMessagePayloadBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Message
;
10
11
use
Commercetools\Api\Models\Channel\ChannelReferenceCollection
;
12
use
Commercetools\Api\Models\Common\LocalizedString
;
13
use
Commercetools\Api\Models\Common\LocalizedStringBuilder
;
14
use
Commercetools\Api\Models\Store\ProductSelectionSettingCollection
;
15
use
Commercetools\Api\Models\StoreCountry\StoreCountryCollection
;
16
use
Commercetools\Api\Models\Type\CustomFields
;
17
use
Commercetools\Api\Models\Type\CustomFieldsBuilder
;
18
use
Commercetools\Base\Builder
;
19
use
Commercetools\Base\DateTimeImmutableCollection
;
20
use
Commercetools\Base\JsonObject
;
21
use
Commercetools\Base\JsonObjectModel
;
22
use
Commercetools\Base\MapperFactory
;
23
use stdClass;
24
28
final
class
StoreCreatedMessagePayloadBuilder
implements
Builder
29
{
34
private
$name;
35
40
private
$languages;
41
46
private
$countries;
47
52
private
$distributionChannels;
53
58
private
$supplyChannels;
59
64
private
$productSelections;
65
70
private
$custom;
71
78
public
function
getName
()
79
{
80
return
$this->name instanceof
LocalizedStringBuilder
? $this->name->
build
() : $this->name;
81
}
82
89
public
function
getLanguages
()
90
{
91
return
$this->languages;
92
}
93
100
public
function
getCountries
()
101
{
102
return
$this->countries;
103
}
104
111
public
function
getDistributionChannels
()
112
{
113
return
$this->distributionChannels;
114
}
115
122
public
function
getSupplyChannels
()
123
{
124
return
$this->supplyChannels;
125
}
126
133
public
function
getProductSelections
()
134
{
135
return
$this->productSelections;
136
}
137
144
public
function
getCustom
()
145
{
146
return
$this->custom instanceof
CustomFieldsBuilder
? $this->custom->
build
() : $this->custom;
147
}
148
153
public
function
withName
(?
LocalizedString
$name)
154
{
155
$this->name = $name;
156
157
return
$this;
158
}
159
164
public
function
withLanguages
(?array $languages)
165
{
166
$this->languages = $languages;
167
168
return
$this;
169
}
170
175
public
function
withCountries
(?
StoreCountryCollection
$countries)
176
{
177
$this->countries = $countries;
178
179
return
$this;
180
}
181
186
public
function
withDistributionChannels
(?
ChannelReferenceCollection
$distributionChannels)
187
{
188
$this->distributionChannels = $distributionChannels;
189
190
return
$this;
191
}
192
197
public
function
withSupplyChannels
(?
ChannelReferenceCollection
$supplyChannels)
198
{
199
$this->supplyChannels = $supplyChannels;
200
201
return
$this;
202
}
203
208
public
function
withProductSelections
(?
ProductSelectionSettingCollection
$productSelections)
209
{
210
$this->productSelections = $productSelections;
211
212
return
$this;
213
}
214
219
public
function
withCustom
(?
CustomFields
$custom)
220
{
221
$this->custom = $custom;
222
223
return
$this;
224
}
225
230
public
function
withNameBuilder
(?
LocalizedStringBuilder
$name)
231
{
232
$this->name = $name;
233
234
return
$this;
235
}
236
241
public
function
withCustomBuilder
(?
CustomFieldsBuilder
$custom)
242
{
243
$this->custom = $custom;
244
245
return
$this;
246
}
247
248
public
function
build
():
StoreCreatedMessagePayload
249
{
250
return
new
StoreCreatedMessagePayloadModel
(
251
$this->name instanceof
LocalizedStringBuilder
? $this->name->
build
() : $this->name,
252
$this->languages,
253
$this->countries,
254
$this->distributionChannels,
255
$this->supplyChannels,
256
$this->productSelections,
257
$this->custom instanceof
CustomFieldsBuilder
? $this->custom->
build
() : $this->custom
258
);
259
}
260
261
public
static
function
of
():
StoreCreatedMessagePayloadBuilder
262
{
263
return
new
self
();
264
}
265
}
Commercetools\Api\Models\Channel\ChannelReferenceCollection
Definition
ChannelReferenceCollection.php:22
Commercetools\Api\Models\Common\LocalizedStringBuilder
Definition
LocalizedStringBuilder.php:20
Commercetools\Api\Models\Common\LocalizedStringBuilder\build
build()
Definition
LocalizedStringBuilder.php:42
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder
Definition
StoreCreatedMessagePayloadBuilder.php:29
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getName
getName()
Definition
StoreCreatedMessagePayloadBuilder.php:78
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\of
static of()
Definition
StoreCreatedMessagePayloadBuilder.php:261
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withName
withName(?LocalizedString $name)
Definition
StoreCreatedMessagePayloadBuilder.php:153
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withSupplyChannels
withSupplyChannels(?ChannelReferenceCollection $supplyChannels)
Definition
StoreCreatedMessagePayloadBuilder.php:197
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getCustom
getCustom()
Definition
StoreCreatedMessagePayloadBuilder.php:144
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getCountries
getCountries()
Definition
StoreCreatedMessagePayloadBuilder.php:100
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withCustom
withCustom(?CustomFields $custom)
Definition
StoreCreatedMessagePayloadBuilder.php:219
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withDistributionChannels
withDistributionChannels(?ChannelReferenceCollection $distributionChannels)
Definition
StoreCreatedMessagePayloadBuilder.php:186
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withLanguages
withLanguages(?array $languages)
Definition
StoreCreatedMessagePayloadBuilder.php:164
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getLanguages
getLanguages()
Definition
StoreCreatedMessagePayloadBuilder.php:89
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\build
build()
Definition
StoreCreatedMessagePayloadBuilder.php:248
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withCustomBuilder
withCustomBuilder(?CustomFieldsBuilder $custom)
Definition
StoreCreatedMessagePayloadBuilder.php:241
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getProductSelections
getProductSelections()
Definition
StoreCreatedMessagePayloadBuilder.php:133
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withProductSelections
withProductSelections(?ProductSelectionSettingCollection $productSelections)
Definition
StoreCreatedMessagePayloadBuilder.php:208
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withCountries
withCountries(?StoreCountryCollection $countries)
Definition
StoreCreatedMessagePayloadBuilder.php:175
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\withNameBuilder
withNameBuilder(?LocalizedStringBuilder $name)
Definition
StoreCreatedMessagePayloadBuilder.php:230
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getSupplyChannels
getSupplyChannels()
Definition
StoreCreatedMessagePayloadBuilder.php:122
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadBuilder\getDistributionChannels
getDistributionChannels()
Definition
StoreCreatedMessagePayloadBuilder.php:111
Commercetools\Api\Models\Message\StoreCreatedMessagePayloadModel
Definition
StoreCreatedMessagePayloadModel.php:28
Commercetools\Api\Models\Store\ProductSelectionSettingCollection
Definition
ProductSelectionSettingCollection.php:22
Commercetools\Api\Models\StoreCountry\StoreCountryCollection
Definition
StoreCountryCollection.php:22
Commercetools\Api\Models\Type\CustomFieldsBuilder
Definition
CustomFieldsBuilder.php:22
Commercetools\Api\Models\Type\CustomFieldsBuilder\build
build()
Definition
CustomFieldsBuilder.php:101
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Common\LocalizedString
Definition
LocalizedString.php:14
Commercetools\Api\Models\Message\StoreCreatedMessagePayload
Definition
StoreCreatedMessagePayload.php:20
Commercetools\Api\Models\Type\CustomFields
Definition
CustomFields.php:15
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\Message
Definition
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.8