commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
ChangeNameChangeBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class ChangeNameChangeBuilder implements Builder
22 {
27  private $change;
28 
33  private $previousValue;
34 
39  private $nextValue;
40 
45  public function getChange()
46  {
47  return $this->change;
48  }
49 
56  public function getPreviousValue()
57  {
58  return $this->previousValue;
59  }
60 
67  public function getNextValue()
68  {
69  return $this->nextValue;
70  }
71 
76  public function withChange(?string $change)
77  {
78  $this->change = $change;
79 
80  return $this;
81  }
82 
87  public function withPreviousValue(?string $previousValue)
88  {
89  $this->previousValue = $previousValue;
90 
91  return $this;
92  }
93 
98  public function withNextValue(?string $nextValue)
99  {
100  $this->nextValue = $nextValue;
101 
102  return $this;
103  }
104 
105 
106  public function build(): ChangeNameChange
107  {
108  return new ChangeNameChangeModel(
109  $this->change,
110  $this->previousValue,
111  $this->nextValue
112  );
113  }
114 
115  public static function of(): ChangeNameChangeBuilder
116  {
117  return new self();
118  }
119 }