commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
PaymentChangeTransactionTimestampActionBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use DateTimeImmutable;
17 use stdClass;
18 
23 {
28  private $transactionId;
29 
34  private $timestamp;
35 
42  public function getTransactionId()
43  {
44  return $this->transactionId;
45  }
46 
53  public function getTimestamp()
54  {
55  return $this->timestamp;
56  }
57 
62  public function withTransactionId(?string $transactionId)
63  {
64  $this->transactionId = $transactionId;
65 
66  return $this;
67  }
68 
73  public function withTimestamp(?DateTimeImmutable $timestamp)
74  {
75  $this->timestamp = $timestamp;
76 
77  return $this;
78  }
79 
80 
82  {
84  $this->transactionId,
85  $this->timestamp
86  );
87  }
88 
90  {
91  return new self();
92  }
93 }