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
SetMetaKeywordsChangeBuilder.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
SetMetaKeywordsChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$previousValue;
36
41
private
$nextValue;
42
47
public
function
getChange
()
48
{
49
return
$this->change;
50
}
51
58
public
function
getPreviousValue
()
59
{
60
return
$this->previousValue instanceof
LocalizedStringBuilder
? $this->previousValue->
build
() : $this->previousValue;
61
}
62
69
public
function
getNextValue
()
70
{
71
return
$this->nextValue instanceof
LocalizedStringBuilder
? $this->nextValue->
build
() : $this->nextValue;
72
}
73
78
public
function
withChange
(?
string
$change)
79
{
80
$this->change = $change;
81
82
return
$this;
83
}
84
89
public
function
withPreviousValue
(?
LocalizedString
$previousValue)
90
{
91
$this->previousValue = $previousValue;
92
93
return
$this;
94
}
95
100
public
function
withNextValue
(?
LocalizedString
$nextValue)
101
{
102
$this->nextValue = $nextValue;
103
104
return
$this;
105
}
106
111
public
function
withPreviousValueBuilder
(?
LocalizedStringBuilder
$previousValue)
112
{
113
$this->previousValue = $previousValue;
114
115
return
$this;
116
}
117
122
public
function
withNextValueBuilder
(?
LocalizedStringBuilder
$nextValue)
123
{
124
$this->nextValue = $nextValue;
125
126
return
$this;
127
}
128
129
public
function
build
():
SetMetaKeywordsChange
130
{
131
return
new
SetMetaKeywordsChangeModel
(
132
$this->change,
133
$this->previousValue instanceof
LocalizedStringBuilder
? $this->previousValue->
build
() : $this->previousValue,
134
$this->nextValue instanceof
LocalizedStringBuilder
? $this->nextValue->
build
() : $this->nextValue
135
);
136
}
137
138
public
static
function
of
():
SetMetaKeywordsChangeBuilder
139
{
140
return
new
self
();
141
}
142
}
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\SetMetaKeywordsChangeBuilder
Definition
SetMetaKeywordsChangeBuilder.php:24
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\withPreviousValue
withPreviousValue(?LocalizedString $previousValue)
Definition
SetMetaKeywordsChangeBuilder.php:89
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\withNextValueBuilder
withNextValueBuilder(?LocalizedStringBuilder $nextValue)
Definition
SetMetaKeywordsChangeBuilder.php:122
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\getNextValue
getNextValue()
Definition
SetMetaKeywordsChangeBuilder.php:69
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\getChange
getChange()
Definition
SetMetaKeywordsChangeBuilder.php:47
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\build
build()
Definition
SetMetaKeywordsChangeBuilder.php:129
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\of
static of()
Definition
SetMetaKeywordsChangeBuilder.php:138
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\withNextValue
withNextValue(?LocalizedString $nextValue)
Definition
SetMetaKeywordsChangeBuilder.php:100
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\getPreviousValue
getPreviousValue()
Definition
SetMetaKeywordsChangeBuilder.php:58
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\withPreviousValueBuilder
withPreviousValueBuilder(?LocalizedStringBuilder $previousValue)
Definition
SetMetaKeywordsChangeBuilder.php:111
Commercetools\History\Models\Change\SetMetaKeywordsChangeBuilder\withChange
withChange(?string $change)
Definition
SetMetaKeywordsChangeBuilder.php:78
Commercetools\History\Models\Change\SetMetaKeywordsChangeModel
Definition
SetMetaKeywordsChangeModel.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\SetMetaKeywordsChange
Definition
SetMetaKeywordsChange.php:16
Commercetools\History\Models\Common\LocalizedString
Definition
LocalizedString.php:14
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8