commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
OrderEditUpdateBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
16 use stdClass;
17 
21 final class OrderEditUpdateBuilder implements Builder
22 {
27  private $version;
28 
33  private $actions;
34 
39  private $dryRun;
40 
48  public function getVersion()
49  {
50  return $this->version;
51  }
52 
59  public function getActions()
60  {
61  return $this->actions;
62  }
63 
70  public function getDryRun()
71  {
72  return $this->dryRun;
73  }
74 
79  public function withVersion(?int $version)
80  {
81  $this->version = $version;
82 
83  return $this;
84  }
85 
90  public function withActions(?OrderEditUpdateActionCollection $actions)
91  {
92  $this->actions = $actions;
93 
94  return $this;
95  }
96 
101  public function withDryRun(?bool $dryRun)
102  {
103  $this->dryRun = $dryRun;
104 
105  return $this;
106  }
107 
108 
109  public function build(): OrderEditUpdate
110  {
111  return new OrderEditUpdateModel(
112  $this->version,
113  $this->actions,
114  $this->dryRun
115  );
116  }
117 
118  public static function of(): OrderEditUpdateBuilder
119  {
120  return new self();
121  }
122 }
withActions(?OrderEditUpdateActionCollection $actions)