commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
ChangeValue
TransactionChangeValueModel.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\ChangeValue
;
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
TransactionChangeValueModel
extends
JsonObjectModel
implements
TransactionChangeValue
21
{
22
23
28
protected
$id
;
29
34
protected
$interactionId
;
35
40
protected
$timestamp
;
41
42
46
public
function
__construct
(
47
?
string
$id
=
null
,
48
?
string
$interactionId
=
null
,
49
?
string
$timestamp
=
null
50
) {
51
$this->
id
=
$id
;
52
$this->interactionId =
$interactionId
;
53
$this->timestamp =
$timestamp
;
54
55
}
56
63
public
function
getId
()
64
{
65
if
(is_null($this->
id
)) {
67
$data = $this->
raw
(self::FIELD_ID);
68
if
(is_null($data)) {
69
return
null
;
70
}
71
$this->
id
= (string) $data;
72
}
73
74
return
$this->id
;
75
}
76
83
public
function
getInteractionId
()
84
{
85
if
(is_null($this->interactionId)) {
87
$data = $this->
raw
(self::FIELD_INTERACTION_ID);
88
if
(is_null($data)) {
89
return
null
;
90
}
91
$this->interactionId = (string) $data;
92
}
93
94
return
$this->interactionId
;
95
}
96
103
public
function
getTimestamp
()
104
{
105
if
(is_null($this->timestamp)) {
107
$data = $this->
raw
(self::FIELD_TIMESTAMP);
108
if
(is_null($data)) {
109
return
null
;
110
}
111
$this->timestamp = (string) $data;
112
}
113
114
return
$this->timestamp
;
115
}
116
117
121
public
function
setId
(?
string
$id
): void
122
{
123
$this->
id
=
$id
;
124
}
125
129
public
function
setInteractionId
(?
string
$interactionId
): void
130
{
131
$this->interactionId =
$interactionId
;
132
}
133
137
public
function
setTimestamp
(?
string
$timestamp
): void
138
{
139
$this->timestamp =
$timestamp
;
140
}
141
142
143
144
}
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\ChangeValue\TransactionChangeValueModel
Definition:
TransactionChangeValueModel.php:21
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\$interactionId
$interactionId
Definition:
TransactionChangeValueModel.php:34
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\__construct
__construct(?string $id=null, ?string $interactionId=null, ?string $timestamp=null)
Definition:
TransactionChangeValueModel.php:46
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\setInteractionId
setInteractionId(?string $interactionId)
Definition:
TransactionChangeValueModel.php:129
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\getInteractionId
getInteractionId()
Definition:
TransactionChangeValueModel.php:83
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\$timestamp
$timestamp
Definition:
TransactionChangeValueModel.php:40
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\setTimestamp
setTimestamp(?string $timestamp)
Definition:
TransactionChangeValueModel.php:137
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\getId
getId()
Definition:
TransactionChangeValueModel.php:63
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\getTimestamp
getTimestamp()
Definition:
TransactionChangeValueModel.php:103
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\setId
setId(?string $id)
Definition:
TransactionChangeValueModel.php:121
Commercetools\History\Models\ChangeValue\TransactionChangeValueModel\$id
$id
Definition:
TransactionChangeValueModel.php:28
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\ChangeValue\TransactionChangeValue
Definition:
TransactionChangeValue.php:15
Commercetools\History\Models\ChangeValue
Definition:
AssetChangeValue.php:9
Generated by
1.9.1