commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-history
src
Models
Change
ChangeInputHintChangeModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\Change
;
10
11
use
Commercetools\Base\DateTimeImmutableCollection
;
12
use
Commercetools\Base\JsonObject
;
13
use
Commercetools\Base\JsonObjectModel
;
14
use
Commercetools\Base\MapperFactory
;
15
use stdClass;
16
20
final
class
ChangeInputHintChangeModel
extends
JsonObjectModel
implements
ChangeInputHintChange
21
{
22
23
public
const
DISCRIMINATOR_VALUE
=
'ChangeInputHintChange'
;
28
protected
$type
;
29
34
protected
$change
;
35
40
protected
$previousValue
;
41
46
protected
$nextValue
;
47
52
protected
$fieldName
;
53
58
protected
$attributeName
;
59
60
64
public
function
__construct
(
65
?
string
$change
=
null
,
66
?
string
$previousValue
=
null
,
67
?
string
$nextValue
=
null
,
68
?
string
$fieldName
=
null
,
69
?
string
$attributeName
=
null
,
70
?
string
$type
=
null
71
) {
72
$this->change =
$change
;
73
$this->previousValue =
$previousValue
;
74
$this->nextValue =
$nextValue
;
75
$this->fieldName =
$fieldName
;
76
$this->attributeName =
$attributeName
;
77
$this->type =
$type
??
self::DISCRIMINATOR_VALUE
;
78
}
79
84
public
function
getType
()
85
{
86
if
(is_null($this->type)) {
88
$data = $this->
raw
(self::FIELD_TYPE);
89
if
(is_null($data)) {
90
return
null
;
91
}
92
$this->type = (string) $data;
93
}
94
95
return
$this->type
;
96
}
97
102
public
function
getChange
()
103
{
104
if
(is_null($this->change)) {
106
$data = $this->
raw
(self::FIELD_CHANGE);
107
if
(is_null($data)) {
108
return
null
;
109
}
110
$this->change = (string) $data;
111
}
112
113
return
$this->change
;
114
}
115
122
public
function
getPreviousValue
()
123
{
124
if
(is_null($this->previousValue)) {
126
$data = $this->
raw
(self::FIELD_PREVIOUS_VALUE);
127
if
(is_null($data)) {
128
return
null
;
129
}
130
$this->previousValue = (string) $data;
131
}
132
133
return
$this->previousValue
;
134
}
135
142
public
function
getNextValue
()
143
{
144
if
(is_null($this->nextValue)) {
146
$data = $this->
raw
(self::FIELD_NEXT_VALUE);
147
if
(is_null($data)) {
148
return
null
;
149
}
150
$this->nextValue = (string) $data;
151
}
152
153
return
$this->nextValue
;
154
}
155
162
public
function
getFieldName
()
163
{
164
if
(is_null($this->fieldName)) {
166
$data = $this->
raw
(self::FIELD_FIELD_NAME);
167
if
(is_null($data)) {
168
return
null
;
169
}
170
$this->fieldName = (string) $data;
171
}
172
173
return
$this->fieldName
;
174
}
175
182
public
function
getAttributeName
()
183
{
184
if
(is_null($this->attributeName)) {
186
$data = $this->
raw
(self::FIELD_ATTRIBUTE_NAME);
187
if
(is_null($data)) {
188
return
null
;
189
}
190
$this->attributeName = (string) $data;
191
}
192
193
return
$this->attributeName
;
194
}
195
196
200
public
function
setChange
(?
string
$change
): void
201
{
202
$this->change =
$change
;
203
}
204
208
public
function
setPreviousValue
(?
string
$previousValue
): void
209
{
210
$this->previousValue =
$previousValue
;
211
}
212
216
public
function
setNextValue
(?
string
$nextValue
): void
217
{
218
$this->nextValue =
$nextValue
;
219
}
220
224
public
function
setFieldName
(?
string
$fieldName
): void
225
{
226
$this->fieldName =
$fieldName
;
227
}
228
232
public
function
setAttributeName
(?
string
$attributeName
): void
233
{
234
$this->attributeName =
$attributeName
;
235
}
236
237
238
239
}
Commercetools\Base\BaseJsonObject\raw
raw(string $field)
Definition
BaseJsonObject.php:57
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\ChangeInputHintChangeModel
Definition
ChangeInputHintChangeModel.php:21
Commercetools\History\Models\Change\ChangeInputHintChangeModel\getType
getType()
Definition
ChangeInputHintChangeModel.php:84
Commercetools\History\Models\Change\ChangeInputHintChangeModel\$change
$change
Definition
ChangeInputHintChangeModel.php:34
Commercetools\History\Models\Change\ChangeInputHintChangeModel\$type
$type
Definition
ChangeInputHintChangeModel.php:28
Commercetools\History\Models\Change\ChangeInputHintChangeModel\$fieldName
$fieldName
Definition
ChangeInputHintChangeModel.php:52
Commercetools\History\Models\Change\ChangeInputHintChangeModel\$nextValue
$nextValue
Definition
ChangeInputHintChangeModel.php:46
Commercetools\History\Models\Change\ChangeInputHintChangeModel\setNextValue
setNextValue(?string $nextValue)
Definition
ChangeInputHintChangeModel.php:216
Commercetools\History\Models\Change\ChangeInputHintChangeModel\__construct
__construct(?string $change=null, ?string $previousValue=null, ?string $nextValue=null, ?string $fieldName=null, ?string $attributeName=null, ?string $type=null)
Definition
ChangeInputHintChangeModel.php:64
Commercetools\History\Models\Change\ChangeInputHintChangeModel\setChange
setChange(?string $change)
Definition
ChangeInputHintChangeModel.php:200
Commercetools\History\Models\Change\ChangeInputHintChangeModel\getPreviousValue
getPreviousValue()
Definition
ChangeInputHintChangeModel.php:122
Commercetools\History\Models\Change\ChangeInputHintChangeModel\getChange
getChange()
Definition
ChangeInputHintChangeModel.php:102
Commercetools\History\Models\Change\ChangeInputHintChangeModel\$previousValue
$previousValue
Definition
ChangeInputHintChangeModel.php:40
Commercetools\History\Models\Change\ChangeInputHintChangeModel\setPreviousValue
setPreviousValue(?string $previousValue)
Definition
ChangeInputHintChangeModel.php:208
Commercetools\History\Models\Change\ChangeInputHintChangeModel\getNextValue
getNextValue()
Definition
ChangeInputHintChangeModel.php:142
Commercetools\History\Models\Change\ChangeInputHintChangeModel\$attributeName
$attributeName
Definition
ChangeInputHintChangeModel.php:58
Commercetools\History\Models\Change\ChangeInputHintChangeModel\getFieldName
getFieldName()
Definition
ChangeInputHintChangeModel.php:162
Commercetools\History\Models\Change\ChangeInputHintChangeModel\setFieldName
setFieldName(?string $fieldName)
Definition
ChangeInputHintChangeModel.php:224
Commercetools\History\Models\Change\ChangeInputHintChangeModel\setAttributeName
setAttributeName(?string $attributeName)
Definition
ChangeInputHintChangeModel.php:232
Commercetools\History\Models\Change\ChangeInputHintChangeModel\getAttributeName
getAttributeName()
Definition
ChangeInputHintChangeModel.php:182
Commercetools\History\Models\Change\ChangeInputHintChangeModel\DISCRIMINATOR_VALUE
const DISCRIMINATOR_VALUE
Definition
ChangeInputHintChangeModel.php:23
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\History\Models\Change\ChangeInputHintChange
Definition
ChangeInputHintChange.php:15
Commercetools\History\Models\Change
Definition
AddAddressChange.php:9
Generated by
1.9.8