commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantSetAssetSourcesActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $staged;
29
34 private $assetId;
35
40 private $assetKey;
41
46 private $sources;
47
54 public function getStaged()
55 {
56 return $this->staged;
57 }
58
65 public function getAssetId()
66 {
67 return $this->assetId;
68 }
69
76 public function getAssetKey()
77 {
78 return $this->assetKey;
79 }
80
87 public function getSources()
88 {
89 return $this->sources;
90 }
91
96 public function withStaged(?bool $staged)
97 {
98 $this->staged = $staged;
99
100 return $this;
101 }
102
107 public function withAssetId(?string $assetId)
108 {
109 $this->assetId = $assetId;
110
111 return $this;
112 }
113
118 public function withAssetKey(?string $assetKey)
119 {
120 $this->assetKey = $assetKey;
121
122 return $this;
123 }
124
129 public function withSources(?AssetSourceCollection $sources)
130 {
131 $this->sources = $sources;
132
133 return $this;
134 }
135
136
138 {
140 $this->staged,
141 $this->assetId,
142 $this->assetKey,
143 $this->sources
144 );
145 }
146
147 public static function of(): VariantSetAssetSourcesActionBuilder
148 {
149 return new self();
150 }
151}