commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
VariantSetAttributeActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $name;
28
33 private $value;
34
39 private $staged;
40
47 public function getName()
48 {
49 return $this->name;
50 }
51
67 public function getValue()
68 {
69 return $this->value;
70 }
71
78 public function getStaged()
79 {
80 return $this->staged;
81 }
82
87 public function withName(?string $name)
88 {
89 $this->name = $name;
90
91 return $this;
92 }
93
98 public function withValue($value)
99 {
100 $this->value = $value;
101
102 return $this;
103 }
104
109 public function withStaged(?bool $staged)
110 {
111 $this->staged = $staged;
112
113 return $this;
114 }
115
116
118 {
120 $this->name,
121 $this->value,
122 $this->staged
123 );
124 }
125
126 public static function of(): VariantSetAttributeActionBuilder
127 {
128 return new self();
129 }
130}