commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantChangeAssetNameActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
18use stdClass;
19
24{
29 private $staged;
30
35 private $assetId;
36
41 private $assetKey;
42
47 private $name;
48
55 public function getStaged()
56 {
57 return $this->staged;
58 }
59
66 public function getAssetId()
67 {
68 return $this->assetId;
69 }
70
77 public function getAssetKey()
78 {
79 return $this->assetKey;
80 }
81
88 public function getName()
89 {
90 return $this->name instanceof LocalizedStringBuilder ? $this->name->build() : $this->name;
91 }
92
97 public function withStaged(?bool $staged)
98 {
99 $this->staged = $staged;
100
101 return $this;
102 }
103
108 public function withAssetId(?string $assetId)
109 {
110 $this->assetId = $assetId;
111
112 return $this;
113 }
114
119 public function withAssetKey(?string $assetKey)
120 {
121 $this->assetKey = $assetKey;
122
123 return $this;
124 }
125
130 public function withName(?LocalizedString $name)
131 {
132 $this->name = $name;
133
134 return $this;
135 }
136
142 {
143 $this->name = $name;
144
145 return $this;
146 }
147
149 {
151 $this->staged,
152 $this->assetId,
153 $this->assetKey,
154 $this->name instanceof LocalizedStringBuilder ? $this->name->build() : $this->name
155 );
156 }
157
158 public static function of(): VariantChangeAssetNameActionBuilder
159 {
160 return new self();
161 }
162}