commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-history
src
Models
Change
ChangeSlugChangeBuilder.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
use
Commercetools\History\Models\Common\LocalizedString
;
18
use
Commercetools\History\Models\Common\LocalizedStringBuilder
;
19
23
final
class
ChangeSlugChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$previousValue;
36
41
private
$nextValue;
42
47
private
$catalogData;
48
53
public
function
getChange
()
54
{
55
return
$this->change;
56
}
57
64
public
function
getPreviousValue
()
65
{
66
return
$this->previousValue instanceof
LocalizedStringBuilder
? $this->previousValue->
build
() : $this->previousValue;
67
}
68
75
public
function
getNextValue
()
76
{
77
return
$this->nextValue instanceof
LocalizedStringBuilder
? $this->nextValue->
build
() : $this->nextValue;
78
}
79
90
public
function
getCatalogData
()
91
{
92
return
$this->catalogData;
93
}
94
99
public
function
withChange
(?
string
$change)
100
{
101
$this->change = $change;
102
103
return
$this;
104
}
105
110
public
function
withPreviousValue
(?
LocalizedString
$previousValue)
111
{
112
$this->previousValue = $previousValue;
113
114
return
$this;
115
}
116
121
public
function
withNextValue
(?
LocalizedString
$nextValue)
122
{
123
$this->nextValue = $nextValue;
124
125
return
$this;
126
}
127
132
public
function
withCatalogData
(?
string
$catalogData)
133
{
134
$this->catalogData = $catalogData;
135
136
return
$this;
137
}
138
143
public
function
withPreviousValueBuilder
(?
LocalizedStringBuilder
$previousValue)
144
{
145
$this->previousValue = $previousValue;
146
147
return
$this;
148
}
149
154
public
function
withNextValueBuilder
(?
LocalizedStringBuilder
$nextValue)
155
{
156
$this->nextValue = $nextValue;
157
158
return
$this;
159
}
160
161
public
function
build
():
ChangeSlugChange
162
{
163
return
new
ChangeSlugChangeModel
(
164
$this->change,
165
$this->previousValue instanceof
LocalizedStringBuilder
? $this->previousValue->
build
() : $this->previousValue,
166
$this->nextValue instanceof
LocalizedStringBuilder
? $this->nextValue->
build
() : $this->nextValue,
167
$this->catalogData
168
);
169
}
170
171
public
static
function
of
():
ChangeSlugChangeBuilder
172
{
173
return
new
self
();
174
}
175
}
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\ChangeSlugChangeBuilder
Definition
ChangeSlugChangeBuilder.php:24
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\withChange
withChange(?string $change)
Definition
ChangeSlugChangeBuilder.php:99
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\getCatalogData
getCatalogData()
Definition
ChangeSlugChangeBuilder.php:90
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\withPreviousValueBuilder
withPreviousValueBuilder(?LocalizedStringBuilder $previousValue)
Definition
ChangeSlugChangeBuilder.php:143
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\withNextValueBuilder
withNextValueBuilder(?LocalizedStringBuilder $nextValue)
Definition
ChangeSlugChangeBuilder.php:154
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\getChange
getChange()
Definition
ChangeSlugChangeBuilder.php:53
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\of
static of()
Definition
ChangeSlugChangeBuilder.php:171
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\getNextValue
getNextValue()
Definition
ChangeSlugChangeBuilder.php:75
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\withNextValue
withNextValue(?LocalizedString $nextValue)
Definition
ChangeSlugChangeBuilder.php:121
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\build
build()
Definition
ChangeSlugChangeBuilder.php:161
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition
ChangeSlugChangeBuilder.php:132
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\getPreviousValue
getPreviousValue()
Definition
ChangeSlugChangeBuilder.php:64
Commercetools\History\Models\Change\ChangeSlugChangeBuilder\withPreviousValue
withPreviousValue(?LocalizedString $previousValue)
Definition
ChangeSlugChangeBuilder.php:110
Commercetools\History\Models\Change\ChangeSlugChangeModel
Definition
ChangeSlugChangeModel.php:23
Commercetools\History\Models\Common\LocalizedStringBuilder
Definition
LocalizedStringBuilder.php:20
Commercetools\History\Models\Common\LocalizedStringBuilder\build
build()
Definition
LocalizedStringBuilder.php:42
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\ChangeSlugChange
Definition
ChangeSlugChange.php:16
Commercetools\History\Models\Common\LocalizedString
Definition
LocalizedString.php:14
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8