commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantSetAssetsActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
17use stdClass;
18
23{
28 private $assets;
29
34 private $staged;
35
42 public function getAssets()
43 {
44 return $this->assets;
45 }
46
53 public function getStaged()
54 {
55 return $this->staged;
56 }
57
62 public function withAssets(?AssetDraftCollection $assets)
63 {
64 $this->assets = $assets;
65
66 return $this;
67 }
68
73 public function withStaged(?bool $staged)
74 {
75 $this->staged = $staged;
76
77 return $this;
78 }
79
80
81 public function build(): VariantSetAssetsAction
82 {
84 $this->assets,
85 $this->staged
86 );
87 }
88
89 public static function of(): VariantSetAssetsActionBuilder
90 {
91 return new self();
92 }
93}