commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
MoveImageToPositionChangeBuilder.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\ImageCollection
;
18
22
final
class
MoveImageToPositionChangeBuilder
implements
Builder
23
{
28
private
$change;
29
34
private
$previousValue;
35
40
private
$nextValue;
41
46
private
$catalogData;
47
52
public
function
getChange
()
53
{
54
return
$this->change;
55
}
56
63
public
function
getPreviousValue
()
64
{
65
return
$this->previousValue;
66
}
67
74
public
function
getNextValue
()
75
{
76
return
$this->nextValue;
77
}
78
88
public
function
getCatalogData
()
89
{
90
return
$this->catalogData;
91
}
92
97
public
function
withChange
(?
string
$change)
98
{
99
$this->change = $change;
100
101
return
$this;
102
}
103
108
public
function
withPreviousValue
(?
ImageCollection
$previousValue)
109
{
110
$this->previousValue = $previousValue;
111
112
return
$this;
113
}
114
119
public
function
withNextValue
(?
ImageCollection
$nextValue)
120
{
121
$this->nextValue = $nextValue;
122
123
return
$this;
124
}
125
130
public
function
withCatalogData
(?
string
$catalogData)
131
{
132
$this->catalogData = $catalogData;
133
134
return
$this;
135
}
136
137
138
public
function
build
():
MoveImageToPositionChange
139
{
140
return
new
MoveImageToPositionChangeModel
(
141
$this->change,
142
$this->previousValue,
143
$this->nextValue,
144
$this->catalogData
145
);
146
}
147
148
public
static
function
of
():
MoveImageToPositionChangeBuilder
149
{
150
return
new
self
();
151
}
152
}
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\MoveImageToPositionChangeBuilder
Definition:
MoveImageToPositionChangeBuilder.php:23
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\withPreviousValue
withPreviousValue(?ImageCollection $previousValue)
Definition:
MoveImageToPositionChangeBuilder.php:108
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\getCatalogData
getCatalogData()
Definition:
MoveImageToPositionChangeBuilder.php:88
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\build
build()
Definition:
MoveImageToPositionChangeBuilder.php:138
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition:
MoveImageToPositionChangeBuilder.php:130
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\of
static of()
Definition:
MoveImageToPositionChangeBuilder.php:148
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\withNextValue
withNextValue(?ImageCollection $nextValue)
Definition:
MoveImageToPositionChangeBuilder.php:119
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\getNextValue
getNextValue()
Definition:
MoveImageToPositionChangeBuilder.php:74
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
MoveImageToPositionChangeBuilder.php:63
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\getChange
getChange()
Definition:
MoveImageToPositionChangeBuilder.php:52
Commercetools\History\Models\Change\MoveImageToPositionChangeBuilder\withChange
withChange(?string $change)
Definition:
MoveImageToPositionChangeBuilder.php:97
Commercetools\History\Models\Change\MoveImageToPositionChangeModel
Definition:
MoveImageToPositionChangeModel.php:22
Commercetools\History\Models\Common\ImageCollection
Definition:
ImageCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\MoveImageToPositionChange
Definition:
MoveImageToPositionChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1