commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
SetSkuChangeBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class SetSkuChangeBuilder implements Builder
22 {
27  private $change;
28 
33  private $previousValue;
34 
39  private $nextValue;
40 
45  private $catalogData;
46 
51  public function getChange()
52  {
53  return $this->change;
54  }
55 
62  public function getPreviousValue()
63  {
64  return $this->previousValue;
65  }
66 
73  public function getNextValue()
74  {
75  return $this->nextValue;
76  }
77 
87  public function getCatalogData()
88  {
89  return $this->catalogData;
90  }
91 
96  public function withChange(?string $change)
97  {
98  $this->change = $change;
99 
100  return $this;
101  }
102 
107  public function withPreviousValue(?string $previousValue)
108  {
109  $this->previousValue = $previousValue;
110 
111  return $this;
112  }
113 
118  public function withNextValue(?string $nextValue)
119  {
120  $this->nextValue = $nextValue;
121 
122  return $this;
123  }
124 
129  public function withCatalogData(?string $catalogData)
130  {
131  $this->catalogData = $catalogData;
132 
133  return $this;
134  }
135 
136 
137  public function build(): SetSkuChange
138  {
139  return new SetSkuChangeModel(
140  $this->change,
141  $this->previousValue,
142  $this->nextValue,
143  $this->catalogData
144  );
145  }
146 
147  public static function of(): SetSkuChangeBuilder
148  {
149  return new self();
150  }
151 }