commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
MyBusinessUnitUpdateBuilder.php
1 <?php
2 
3 declare(strict_types=1);
10 
17 use stdClass;
18 
22 final class MyBusinessUnitUpdateBuilder implements Builder
23 {
28  private $version;
29 
34  private $actions;
35 
43  public function getVersion()
44  {
45  return $this->version;
46  }
47 
54  public function getActions()
55  {
56  return $this->actions;
57  }
58 
63  public function withVersion(?int $version)
64  {
65  $this->version = $version;
66 
67  return $this;
68  }
69 
75  {
76  $this->actions = $actions;
77 
78  return $this;
79  }
80 
81 
82  public function build(): MyBusinessUnitUpdate
83  {
84  return new MyBusinessUnitUpdateModel(
85  $this->version,
86  $this->actions
87  );
88  }
89 
90  public static function of(): MyBusinessUnitUpdateBuilder
91  {
92  return new self();
93  }
94 }
withActions(?BusinessUnitUpdateActionCollection $actions)