commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
StandalonePriceChangeValueActionBuilder.php
1<?php
2
3declare(strict_types=1);
10
18use stdClass;
19
24{
29 private $value;
30
35 private $staged;
36
44 public function getValue()
45 {
46 return $this->value instanceof MoneyBuilder ? $this->value->build() : $this->value;
47 }
48
55 public function getStaged()
56 {
57 return $this->staged;
58 }
59
64 public function withValue(?Money $value)
65 {
66 $this->value = $value;
67
68 return $this;
69 }
70
75 public function withStaged(?bool $staged)
76 {
77 $this->staged = $staged;
78
79 return $this;
80 }
81
86 public function withValueBuilder(?MoneyBuilder $value)
87 {
88 $this->value = $value;
89
90 return $this;
91 }
92
94 {
96 $this->value instanceof MoneyBuilder ? $this->value->build() : $this->value,
97 $this->staged
98 );
99 }
100
102 {
103 return new self();
104 }
105}