commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantBulkUpdateItemBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $id;
28
33 private $key;
34
39 private $version;
40
47 public function getId()
48 {
49 return $this->id;
50 }
51
58 public function getKey()
59 {
60 return $this->key;
61 }
62
71 public function getVersion()
72 {
73 return $this->version;
74 }
75
80 public function withId(?string $id)
81 {
82 $this->id = $id;
83
84 return $this;
85 }
86
91 public function withKey(?string $key)
92 {
93 $this->key = $key;
94
95 return $this;
96 }
97
102 public function withVersion(?int $version)
103 {
104 $this->version = $version;
105
106 return $this;
107 }
108
109
110 public function build(): VariantBulkUpdateItem
111 {
113 $this->id,
114 $this->key,
115 $this->version
116 );
117 }
118
119 public static function of(): VariantBulkUpdateItemBuilder
120 {
121 return new self();
122 }
123}