commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
Change
RequestQuoteRenegotiationChangeBuilder.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
RequestQuoteRenegotiationChangeBuilder
implements
Builder
22
{
27
private
$change;
28
33
private
$previousValue;
34
39
private
$nextValue;
40
45
private
$buyerComment;
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
getBuyerComment
()
85
{
86
return
$this->buyerComment;
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
withBuyerComment
(?
string
$buyerComment)
127
{
128
$this->buyerComment = $buyerComment;
129
130
return
$this;
131
}
132
133
134
public
function
build
():
RequestQuoteRenegotiationChange
135
{
136
return
new
RequestQuoteRenegotiationChangeModel
(
137
$this->change,
138
$this->previousValue,
139
$this->nextValue,
140
$this->buyerComment
141
);
142
}
143
144
public
static
function
of
():
RequestQuoteRenegotiationChangeBuilder
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\RequestQuoteRenegotiationChangeBuilder
Definition:
RequestQuoteRenegotiationChangeBuilder.php:22
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\of
static of()
Definition:
RequestQuoteRenegotiationChangeBuilder.php:144
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\build
build()
Definition:
RequestQuoteRenegotiationChangeBuilder.php:134
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\getBuyerComment
getBuyerComment()
Definition:
RequestQuoteRenegotiationChangeBuilder.php:84
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\withChange
withChange(?string $change)
Definition:
RequestQuoteRenegotiationChangeBuilder.php:93
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\withPreviousValue
withPreviousValue(?string $previousValue)
Definition:
RequestQuoteRenegotiationChangeBuilder.php:104
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\withNextValue
withNextValue(?string $nextValue)
Definition:
RequestQuoteRenegotiationChangeBuilder.php:115
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\getNextValue
getNextValue()
Definition:
RequestQuoteRenegotiationChangeBuilder.php:73
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\getChange
getChange()
Definition:
RequestQuoteRenegotiationChangeBuilder.php:51
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\getPreviousValue
getPreviousValue()
Definition:
RequestQuoteRenegotiationChangeBuilder.php:62
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeBuilder\withBuyerComment
withBuyerComment(?string $buyerComment)
Definition:
RequestQuoteRenegotiationChangeBuilder.php:126
Commercetools\History\Models\Change\RequestQuoteRenegotiationChangeModel
Definition:
RequestQuoteRenegotiationChangeModel.php:21
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\Change\RequestQuoteRenegotiationChange
Definition:
RequestQuoteRenegotiationChange.php:15
Commercetools\History\Models\Change
Definition:
AddAddressChange.php:9
Generated by
1.9.1