commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
SetSkuChangeBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\Change
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
21
final
class
SetSkuChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$previousValue;
34
39
private
$nextValue;
40
45
private
$catalogData;
46
51
public
function
getChange
()
52
{
53
return
$this->change;
54
}
55
62
public
function
getPreviousValue
()
63
{
64
return
$this->previousValue;
65
}
66
73
public
function
getNextValue
()
74
{
75
return
$this->nextValue;
76
}
77
87
public
function
getCatalogData
()
88
{
89
return
$this->catalogData;
90
}
91
96
public
function
withChange
(?
string
$change)
97
{
98
$this->change = $change;
99
100
return
$this;
101
}
102
107
public
function
withPreviousValue
(?
string
$previousValue)
108
{
109
$this->previousValue = $previousValue;
110
111
return
$this;
112
}
113
118
public
function
withNextValue
(?
string
$nextValue)
119
{
120
$this->nextValue = $nextValue;
121
122
return
$this;
123
}
124
129
public
function
withCatalogData
(?
string
$catalogData)
130
{
131
$this->catalogData = $catalogData;
132
133
return
$this;
134
}
135
136
137
public
function
build
():
SetSkuChange
138
{
139
return
new
SetSkuChangeModel
(
140
$this->change,
141
$this->previousValue,
142
$this->nextValue,
143
$this->catalogData
144
);
145
}
146
147
public
static
function
of
():
SetSkuChangeBuilder
148
{
149
return
new
self
();
150
}
151
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\History\Models\Change\SetSkuChangeBuilder
Definition:
SetSkuChangeBuilder.php:22
Commercetools\History\Models\Change\SetSkuChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
SetSkuChangeBuilder.php:62
Commercetools\History\Models\Change\SetSkuChangeBuilder\getCatalogData
getCatalogData()
Definition:
SetSkuChangeBuilder.php:87
Commercetools\History\Models\Change\SetSkuChangeBuilder\getChange
getChange()
Definition:
SetSkuChangeBuilder.php:51
Commercetools\History\Models\Change\SetSkuChangeBuilder\of
static of()
Definition:
SetSkuChangeBuilder.php:147
Commercetools\History\Models\Change\SetSkuChangeBuilder\withPreviousValue
withPreviousValue(?string $previousValue)
Definition:
SetSkuChangeBuilder.php:107
Commercetools\History\Models\Change\SetSkuChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition:
SetSkuChangeBuilder.php:129
Commercetools\History\Models\Change\SetSkuChangeBuilder\getNextValue
getNextValue()
Definition:
SetSkuChangeBuilder.php:73
Commercetools\History\Models\Change\SetSkuChangeBuilder\withChange
withChange(?string $change)
Definition:
SetSkuChangeBuilder.php:96
Commercetools\History\Models\Change\SetSkuChangeBuilder\build
build()
Definition:
SetSkuChangeBuilder.php:137
Commercetools\History\Models\Change\SetSkuChangeBuilder\withNextValue
withNextValue(?string $nextValue)
Definition:
SetSkuChangeBuilder.php:118
Commercetools\History\Models\Change\SetSkuChangeModel
Definition:
SetSkuChangeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\SetSkuChange
Definition:
SetSkuChange.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1