commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CartDiscount
CartDiscountValueAbsoluteDraftBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
10
11
use
Commercetools\Api\Models\Common\MoneyCollection
;
12
use
Commercetools\Base\Builder
;
13
use
Commercetools\Base\DateTimeImmutableCollection
;
14
use
Commercetools\Base\JsonObject
;
15
use
Commercetools\Base\JsonObjectModel
;
16
use
Commercetools\Base\MapperFactory
;
17
use stdClass;
18
22
final
class
CartDiscountValueAbsoluteDraftBuilder
implements
Builder
23
{
28
private
$money;
29
34
private
$applicationMode;
35
44
public
function
getMoney
()
45
{
46
return
$this->money;
47
}
48
56
public
function
getApplicationMode
()
57
{
58
return
$this->applicationMode;
59
}
60
65
public
function
withMoney
(?
MoneyCollection
$money)
66
{
67
$this->money = $money;
68
69
return
$this;
70
}
71
76
public
function
withApplicationMode
(?
string
$applicationMode)
77
{
78
$this->applicationMode = $applicationMode;
79
80
return
$this;
81
}
82
83
84
public
function
build
():
CartDiscountValueAbsoluteDraft
85
{
86
return
new
CartDiscountValueAbsoluteDraftModel
(
87
$this->money,
88
$this->applicationMode
89
);
90
}
91
92
public
static
function
of
():
CartDiscountValueAbsoluteDraftBuilder
93
{
94
return
new
self
();
95
}
96
}
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:23
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder\getMoney
getMoney()
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:44
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder\build
build()
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:84
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder\withMoney
withMoney(?MoneyCollection $money)
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:65
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder\getApplicationMode
getApplicationMode()
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:56
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder\of
static of()
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:92
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftBuilder\withApplicationMode
withApplicationMode(?string $applicationMode)
Definition:
CartDiscountValueAbsoluteDraftBuilder.php:76
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraftModel
Definition:
CartDiscountValueAbsoluteDraftModel.php:22
Commercetools\Api\Models\Common\MoneyCollection
Definition:
MoneyCollection.php:26
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteDraft
Definition:
CartDiscountValueAbsoluteDraft.php:16
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\CartDiscount
Definition:
CartDiscount.php:9
Generated by
1.9.1