commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-history
src
Models
ChangeValue
ChangeValueAbsoluteChangeValueBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\History\Models\ChangeValue
;
10
11
use
Commercetools\Base\Builder
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use
Commercetools\Base\JsonObjectModel
;
15
use
Commercetools\Base\MapperFactory
;
16
use stdClass;
17
use
Commercetools\History\Models\Common\MoneyCollection
;
18
22
final
class
ChangeValueAbsoluteChangeValueBuilder
implements
Builder
23
{
28
private
$money;
29
36
public
function
getMoney
()
37
{
38
return
$this->money;
39
}
40
45
public
function
withMoney
(?
MoneyCollection
$money)
46
{
47
$this->money = $money;
48
49
return
$this;
50
}
51
52
53
public
function
build
():
ChangeValueAbsoluteChangeValue
54
{
55
return
new
ChangeValueAbsoluteChangeValueModel
(
56
$this->money
57
);
58
}
59
60
public
static
function
of
():
ChangeValueAbsoluteChangeValueBuilder
61
{
62
return
new
self
();
63
}
64
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValueBuilder
Definition:
ChangeValueAbsoluteChangeValueBuilder.php:23
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValueBuilder\withMoney
withMoney(?MoneyCollection $money)
Definition:
ChangeValueAbsoluteChangeValueBuilder.php:45
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValueBuilder\getMoney
getMoney()
Definition:
ChangeValueAbsoluteChangeValueBuilder.php:36
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValueBuilder\of
static of()
Definition:
ChangeValueAbsoluteChangeValueBuilder.php:60
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValueBuilder\build
build()
Definition:
ChangeValueAbsoluteChangeValueBuilder.php:53
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValueModel
Definition:
ChangeValueAbsoluteChangeValueModel.php:22
Commercetools\History\Models\Common\MoneyCollection
Definition:
MoneyCollection.php:22
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\History\Models\ChangeValue\ChangeValueAbsoluteChangeValue
Definition:
ChangeValueAbsoluteChangeValue.php:16
Commercetools\History\Models\ChangeValue
Definition:
AssetChangeValue.php:9
Generated by
1.9.1