commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
TransactionChangeValueModel.php
1<?php
2
3declare(strict_types=1);
10
15use stdClass;
16
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
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}
__construct(?string $id=null, ?string $interactionId=null, ?string $timestamp=null)