commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
AddExternalImageChangeBuilder.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
AddExternalImageChangeBuilder
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
():
AddExternalImageChange
139
{
140
return
new
AddExternalImageChangeModel
(
141
$this->change,
142
$this->previousValue,
143
$this->nextValue,
144
$this->catalogData
145
);
146
}
147
148
public
static
function
of
():
AddExternalImageChangeBuilder
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\AddExternalImageChangeBuilder
Definition:
AddExternalImageChangeBuilder.php:23
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\withNextValue
withNextValue(?ImageCollection $nextValue)
Definition:
AddExternalImageChangeBuilder.php:119
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\of
static of()
Definition:
AddExternalImageChangeBuilder.php:148
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\getCatalogData
getCatalogData()
Definition:
AddExternalImageChangeBuilder.php:88
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\getChange
getChange()
Definition:
AddExternalImageChangeBuilder.php:52
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
AddExternalImageChangeBuilder.php:63
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\build
build()
Definition:
AddExternalImageChangeBuilder.php:138
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\withChange
withChange(?string $change)
Definition:
AddExternalImageChangeBuilder.php:97
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\withPreviousValue
withPreviousValue(?ImageCollection $previousValue)
Definition:
AddExternalImageChangeBuilder.php:108
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\withCatalogData
withCatalogData(?string $catalogData)
Definition:
AddExternalImageChangeBuilder.php:130
Commercetools\History\Models\Change\AddExternalImageChangeBuilder\getNextValue
getNextValue()
Definition:
AddExternalImageChangeBuilder.php:74
Commercetools\History\Models\Change\AddExternalImageChangeModel
Definition:
AddExternalImageChangeModel.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\AddExternalImageChange
Definition:
AddExternalImageChange.php:16
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1