commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
ChangeAttributeConstraintChangeBuilder.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
ChangeAttributeConstraintChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$previousValue;
34
39
private
$nextValue;
40
45
private
$attributeName;
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
84
public
function
getAttributeName
()
85
{
86
return
$this->attributeName;
87
}
88
93
public
function
withChange
(?
string
$change)
94
{
95
$this->change = $change;
96
97
return
$this;
98
}
99
104
public
function
withPreviousValue
(?
string
$previousValue)
105
{
106
$this->previousValue = $previousValue;
107
108
return
$this;
109
}
110
115
public
function
withNextValue
(?
string
$nextValue)
116
{
117
$this->nextValue = $nextValue;
118
119
return
$this;
120
}
121
126
public
function
withAttributeName
(?
string
$attributeName)
127
{
128
$this->attributeName = $attributeName;
129
130
return
$this;
131
}
132
133
134
public
function
build
():
ChangeAttributeConstraintChange
135
{
136
return
new
ChangeAttributeConstraintChangeModel
(
137
$this->change,
138
$this->previousValue,
139
$this->nextValue,
140
$this->attributeName
141
);
142
}
143
144
public
static
function
of
():
ChangeAttributeConstraintChangeBuilder
145
{
146
return
new
self
();
147
}
148
}
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\ChangeAttributeConstraintChangeBuilder
Definition:
ChangeAttributeConstraintChangeBuilder.php:22
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\build
build()
Definition:
ChangeAttributeConstraintChangeBuilder.php:134
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\withChange
withChange(?string $change)
Definition:
ChangeAttributeConstraintChangeBuilder.php:93
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\of
static of()
Definition:
ChangeAttributeConstraintChangeBuilder.php:144
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\getChange
getChange()
Definition:
ChangeAttributeConstraintChangeBuilder.php:51
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\withAttributeName
withAttributeName(?string $attributeName)
Definition:
ChangeAttributeConstraintChangeBuilder.php:126
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\getNextValue
getNextValue()
Definition:
ChangeAttributeConstraintChangeBuilder.php:73
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\withNextValue
withNextValue(?string $nextValue)
Definition:
ChangeAttributeConstraintChangeBuilder.php:115
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\getAttributeName
getAttributeName()
Definition:
ChangeAttributeConstraintChangeBuilder.php:84
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\withPreviousValue
withPreviousValue(?string $previousValue)
Definition:
ChangeAttributeConstraintChangeBuilder.php:104
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
ChangeAttributeConstraintChangeBuilder.php:62
Commercetools\History\Models\Change\ChangeAttributeConstraintChangeModel
Definition:
ChangeAttributeConstraintChangeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\ChangeAttributeConstraintChange
Definition:
ChangeAttributeConstraintChange.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1