commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
SetTransitionsChangeBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
18 
22 final class SetTransitionsChangeBuilder implements Builder
23 {
28  private $change;
29 
34  private $previousValue;
35 
40  private $nextValue;
41 
46  public function getChange()
47  {
48  return $this->change;
49  }
50 
57  public function getPreviousValue()
58  {
59  return $this->previousValue;
60  }
61 
68  public function getNextValue()
69  {
70  return $this->nextValue;
71  }
72 
77  public function withChange(?string $change)
78  {
79  $this->change = $change;
80 
81  return $this;
82  }
83 
88  public function withPreviousValue(?ReferenceCollection $previousValue)
89  {
90  $this->previousValue = $previousValue;
91 
92  return $this;
93  }
94 
99  public function withNextValue(?ReferenceCollection $nextValue)
100  {
101  $this->nextValue = $nextValue;
102 
103  return $this;
104  }
105 
106 
107  public function build(): SetTransitionsChange
108  {
109  return new SetTransitionsChangeModel(
110  $this->change,
111  $this->previousValue,
112  $this->nextValue
113  );
114  }
115 
116  public static function of(): SetTransitionsChangeBuilder
117  {
118  return new self();
119  }
120 }