commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
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
43
public
function
getValue
()
44
{
45
return
$this->value instanceof
MoneyBuilder
? $this->value->
build
() : $this->value;
46
}
47
54
public
function
getStaged
()
55
{
56
return
$this->staged;
57
}
58
63
public
function
withValue
(?
Money
$value)
64
{
65
$this->value = $value;
66
67
return
$this;
68
}
69
74
public
function
withStaged
(?
bool
$staged)
75
{
76
$this->staged = $staged;
77
78
return
$this;
79
}
80
85
public
function
withValueBuilder
(?
MoneyBuilder
$value)
86
{
87
$this->value = $value;
88
89
return
$this;
90
}
91
92
public
function
build
():
StandalonePriceChangeValueAction
93
{
94
return
new
StandalonePriceChangeValueActionModel
(
95
$this->value instanceof
MoneyBuilder
? $this->value->
build
() : $this->value,
96
$this->staged
97
);
98
}
99
100
public
static
function
of
():
StandalonePriceChangeValueActionBuilder
101
{
102
return
new
self
();
103
}
104
}
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:85
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\build
build()
Definition:
StandalonePriceChangeValueActionBuilder.php:92
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\of
static of()
Definition:
StandalonePriceChangeValueActionBuilder.php:100
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\getStaged
getStaged()
Definition:
StandalonePriceChangeValueActionBuilder.php:54
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\withValue
withValue(?Money $value)
Definition:
StandalonePriceChangeValueActionBuilder.php:63
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\getValue
getValue()
Definition:
StandalonePriceChangeValueActionBuilder.php:43
Commercetools\Api\Models\StandalonePrice\StandalonePriceChangeValueActionBuilder\withStaged
withStaged(?bool $staged)
Definition:
StandalonePriceChangeValueActionBuilder.php:74
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.1