commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
SetPermissionsChangeBuilder.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
SetPermissionsChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$previousValue;
34
39
private
$nextValue;
40
45
public
function
getChange
()
46
{
47
return
$this->change;
48
}
49
56
public
function
getPreviousValue
()
57
{
58
return
$this->previousValue;
59
}
60
67
public
function
getNextValue
()
68
{
69
return
$this->nextValue;
70
}
71
76
public
function
withChange
(?
string
$change)
77
{
78
$this->change = $change;
79
80
return
$this;
81
}
82
87
public
function
withPreviousValue
(?array $previousValue)
88
{
89
$this->previousValue = $previousValue;
90
91
return
$this;
92
}
93
98
public
function
withNextValue
(?array $nextValue)
99
{
100
$this->nextValue = $nextValue;
101
102
return
$this;
103
}
104
105
106
public
function
build
():
SetPermissionsChange
107
{
108
return
new
SetPermissionsChangeModel
(
109
$this->change,
110
$this->previousValue,
111
$this->nextValue
112
);
113
}
114
115
public
static
function
of
():
SetPermissionsChangeBuilder
116
{
117
return
new
self
();
118
}
119
}
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\SetPermissionsChangeBuilder
Definition:
SetPermissionsChangeBuilder.php:22
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\withNextValue
withNextValue(?array $nextValue)
Definition:
SetPermissionsChangeBuilder.php:98
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
SetPermissionsChangeBuilder.php:56
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\build
build()
Definition:
SetPermissionsChangeBuilder.php:106
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\of
static of()
Definition:
SetPermissionsChangeBuilder.php:115
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\withPreviousValue
withPreviousValue(?array $previousValue)
Definition:
SetPermissionsChangeBuilder.php:87
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\getNextValue
getNextValue()
Definition:
SetPermissionsChangeBuilder.php:67
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\withChange
withChange(?string $change)
Definition:
SetPermissionsChangeBuilder.php:76
Commercetools\History\Models\Change\SetPermissionsChangeBuilder\getChange
getChange()
Definition:
SetPermissionsChangeBuilder.php:45
Commercetools\History\Models\Change\SetPermissionsChangeModel
Definition:
SetPermissionsChangeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\SetPermissionsChange
Definition:
SetPermissionsChange.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1