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