commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
lib
commercetools-api
src
Models
StandalonePrice
StandalonePriceChangeValueActionBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\StandalonePrice
;
10
11
use
Commercetools\Api\Models\Common\Money
;
12
use
Commercetools\Api\Models\Common\MoneyBuilder
;
13
use
Commercetools\Base\Builder
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
use
Commercetools\Base\JsonObjectModel
;
17
use
Commercetools\Base\MapperFactory
;
18
use stdClass;
19
23
final
class
StandalonePriceChangeValueActionBuilder
implements
Builder
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
93
public
function
build
():
StandalonePriceChangeValueAction
94
{
95
return
new
StandalonePriceChangeValueActionModel
(
96
$this->value instanceof
MoneyBuilder
? $this->value->
build
() : $this->value,
97
$this->staged
98
);
99
}
100
101
public
static
function
of
():
StandalonePriceChangeValueActionBuilder
102
{
103
return
new
self
();
104
}
105
}
Commercetools\Api\Models\Common\MoneyBuilder
Definition
MoneyBuilder.php:22
Commercetools\Api\Models\Common\MoneyBuilder\build
build()
Definition
MoneyBuilder.php:84
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder
Definition
StandalonePriceChangeValueActionBuilder.php:24
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\withValueBuilder
withValueBuilder(?MoneyBuilder $value)
Definition
StandalonePriceChangeValueActionBuilder.php:86
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\build
build()
Definition
StandalonePriceChangeValueActionBuilder.php:93
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\of
static of()
Definition
StandalonePriceChangeValueActionBuilder.php:101
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\getStaged
getStaged()
Definition
StandalonePriceChangeValueActionBuilder.php:55
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\withValue
withValue(?Money $value)
Definition
StandalonePriceChangeValueActionBuilder.php:64
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\getValue
getValue()
Definition
StandalonePriceChangeValueActionBuilder.php:44
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\withStaged
withStaged(?bool $staged)
Definition
StandalonePriceChangeValueActionBuilder.php:75
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionModel
Definition
StandalonePriceChangeValueActionModel.php:23
Commercetools\Base\DateTimeImmutableCollection
Definition
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition
MapperFactory.php:16
Commercetools\Api\Models\Common\Money
Definition
Money.php:15
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueAction
Definition
StandalonePriceChangeValueAction.php:16
Commercetools\Base\Builder
Definition
Builder.php:16
Commercetools\Base\JsonObject
Definition
JsonObject.php:15
Commercetools\Api\Models\StandalonePrice
Definition
StagedPriceDraft.php:9
Generated by
1.9.8