commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
TransactionChangeValueBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class TransactionChangeValueBuilder implements Builder
22 {
27  private $id;
28 
33  private $interactionId;
34 
39  private $timestamp;
40 
47  public function getId()
48  {
49  return $this->id;
50  }
51 
58  public function getInteractionId()
59  {
60  return $this->interactionId;
61  }
62 
69  public function getTimestamp()
70  {
71  return $this->timestamp;
72  }
73 
78  public function withId(?string $id)
79  {
80  $this->id = $id;
81 
82  return $this;
83  }
84 
89  public function withInteractionId(?string $interactionId)
90  {
91  $this->interactionId = $interactionId;
92 
93  return $this;
94  }
95 
100  public function withTimestamp(?string $timestamp)
101  {
102  $this->timestamp = $timestamp;
103 
104  return $this;
105  }
106 
107 
108  public function build(): TransactionChangeValue
109  {
110  return new TransactionChangeValueModel(
111  $this->id,
112  $this->interactionId,
113  $this->timestamp
114  );
115  }
116 
117  public static function of(): TransactionChangeValueBuilder
118  {
119  return new self();
120  }
121 }