commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
RemoveLocalizedEnumValuesChangeBuilder.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\ChangeValue\LocalizedEnumValue
;
18
use
Commercetools\History\Models\ChangeValue\LocalizedEnumValueBuilder
;
19
23
final
class
RemoveLocalizedEnumValuesChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$previousValue;
36
41
private
$attributeName;
42
47
public
function
getChange
()
48
{
49
return
$this->change;
50
}
51
58
public
function
getPreviousValue
()
59
{
60
return
$this->previousValue instanceof
LocalizedEnumValueBuilder
? $this->previousValue->
build
() : $this->previousValue;
61
}
62
69
public
function
getAttributeName
()
70
{
71
return
$this->attributeName;
72
}
73
78
public
function
withChange
(?
string
$change)
79
{
80
$this->change = $change;
81
82
return
$this;
83
}
84
89
public
function
withPreviousValue
(?
LocalizedEnumValue
$previousValue)
90
{
91
$this->previousValue = $previousValue;
92
93
return
$this;
94
}
95
100
public
function
withAttributeName
(?
string
$attributeName)
101
{
102
$this->attributeName = $attributeName;
103
104
return
$this;
105
}
106
111
public
function
withPreviousValueBuilder
(?
LocalizedEnumValueBuilder
$previousValue)
112
{
113
$this->previousValue = $previousValue;
114
115
return
$this;
116
}
117
118
public
function
build
():
RemoveLocalizedEnumValuesChange
119
{
120
return
new
RemoveLocalizedEnumValuesChangeModel
(
121
$this->change,
122
$this->previousValue instanceof
LocalizedEnumValueBuilder
? $this->previousValue->
build
() : $this->previousValue,
123
$this->attributeName
124
);
125
}
126
127
public
static
function
of
():
RemoveLocalizedEnumValuesChangeBuilder
128
{
129
return
new
self
();
130
}
131
}
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\RemoveLocalizedEnumValuesChangeBuilder
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:24
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\withAttributeName
withAttributeName(?string $attributeName)
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:100
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\of
static of()
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:127
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\withPreviousValueBuilder
withPreviousValueBuilder(?LocalizedEnumValueBuilder $previousValue)
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:111
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\getAttributeName
getAttributeName()
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:69
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:58
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\getChange
getChange()
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:47
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\withPreviousValue
withPreviousValue(?LocalizedEnumValue $previousValue)
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:89
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\withChange
withChange(?string $change)
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:78
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeBuilder\build
build()
Definition:
RemoveLocalizedEnumValuesChangeBuilder.php:118
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChangeModel
Definition:
RemoveLocalizedEnumValuesChangeModel.php:23
Commercetools\History\Models\ChangeValue\LocalizedEnumValueBuilder
Definition:
LocalizedEnumValueBuilder.php:24
Commercetools\History\Models\ChangeValue\LocalizedEnumValueBuilder\build
build()
Definition:
LocalizedEnumValueBuilder.php:92
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\RemoveLocalizedEnumValuesChange
Definition:
RemoveLocalizedEnumValuesChange.php:16
Commercetools\History\Models\ChangeValue\LocalizedEnumValue
Definition:
LocalizedEnumValue.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1