commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
ChangeTransactionInteractionIdChangeBuilder.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\TransactionChangeValue
;
18
use
Commercetools\History\Models\ChangeValue\TransactionChangeValueBuilder
;
19
23
final
class
ChangeTransactionInteractionIdChangeBuilder
implements
Builder
24
{
29
private
$change;
30
35
private
$previousValue;
36
41
private
$nextValue;
42
47
private
$transaction;
48
53
public
function
getChange
()
54
{
55
return
$this->change;
56
}
57
64
public
function
getPreviousValue
()
65
{
66
return
$this->previousValue;
67
}
68
75
public
function
getNextValue
()
76
{
77
return
$this->nextValue;
78
}
79
86
public
function
getTransaction
()
87
{
88
return
$this->transaction instanceof
TransactionChangeValueBuilder
? $this->transaction->
build
() : $this->transaction;
89
}
90
95
public
function
withChange
(?
string
$change)
96
{
97
$this->change = $change;
98
99
return
$this;
100
}
101
106
public
function
withPreviousValue
(?
string
$previousValue)
107
{
108
$this->previousValue = $previousValue;
109
110
return
$this;
111
}
112
117
public
function
withNextValue
(?
string
$nextValue)
118
{
119
$this->nextValue = $nextValue;
120
121
return
$this;
122
}
123
128
public
function
withTransaction
(?
TransactionChangeValue
$transaction)
129
{
130
$this->transaction = $transaction;
131
132
return
$this;
133
}
134
139
public
function
withTransactionBuilder
(?
TransactionChangeValueBuilder
$transaction)
140
{
141
$this->transaction = $transaction;
142
143
return
$this;
144
}
145
146
public
function
build
():
ChangeTransactionInteractionIdChange
147
{
148
return
new
ChangeTransactionInteractionIdChangeModel
(
149
$this->change,
150
$this->previousValue,
151
$this->nextValue,
152
$this->transaction instanceof
TransactionChangeValueBuilder
? $this->transaction->
build
() : $this->transaction
153
);
154
}
155
156
public
static
function
of
():
ChangeTransactionInteractionIdChangeBuilder
157
{
158
return
new
self
();
159
}
160
}
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\ChangeTransactionInteractionIdChangeBuilder
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:24
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\getChange
getChange()
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:53
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\of
static of()
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:156
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\getNextValue
getNextValue()
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:75
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\withPreviousValue
withPreviousValue(?string $previousValue)
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:106
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\withTransaction
withTransaction(?TransactionChangeValue $transaction)
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:128
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\build
build()
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:146
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\withNextValue
withNextValue(?string $nextValue)
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:117
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\withChange
withChange(?string $change)
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:95
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\withTransactionBuilder
withTransactionBuilder(?TransactionChangeValueBuilder $transaction)
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:139
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\getTransaction
getTransaction()
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:86
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
ChangeTransactionInteractionIdChangeBuilder.php:64
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChangeModel
Definition:
ChangeTransactionInteractionIdChangeModel.php:23
Commercetools\History\Models\ChangeValue\TransactionChangeValueBuilder
Definition:
TransactionChangeValueBuilder.php:22
Commercetools\History\Models\ChangeValue\TransactionChangeValueBuilder\build
build()
Definition:
TransactionChangeValueBuilder.php:108
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\ChangeTransactionInteractionIdChange
Definition:
ChangeTransactionInteractionIdChange.php:16
Commercetools\History\Models\ChangeValue\TransactionChangeValue
Definition:
TransactionChangeValue.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1