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
CartDiscount
CartDiscountValueFixedBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
10
11
use
Commercetools\Api\Models\Common\TypedMoneyCollection
;
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
CartDiscountValueFixedBuilder
implements
Builder
23
{
28
private
$money;
29
34
private
$applicationMode;
35
42
public
function
getMoney
()
43
{
44
return
$this->money;
45
}
46
54
public
function
getApplicationMode
()
55
{
56
return
$this->applicationMode;
57
}
58
63
public
function
withMoney
(?
TypedMoneyCollection
$money)
64
{
65
$this->money = $money;
66
67
return
$this;
68
}
69
74
public
function
withApplicationMode
(?
string
$applicationMode)
75
{
76
$this->applicationMode = $applicationMode;
77
78
return
$this;
79
}
80
81
82
public
function
build
():
CartDiscountValueFixed
83
{
84
return
new
CartDiscountValueFixedModel
(
85
$this->money,
86
$this->applicationMode
87
);
88
}
89
90
public
static
function
of
():
CartDiscountValueFixedBuilder
91
{
92
return
new
self
();
93
}
94
}
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder
Definition
CartDiscountValueFixedBuilder.php:23
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder\of
static of()
Definition
CartDiscountValueFixedBuilder.php:90
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder\withApplicationMode
withApplicationMode(?string $applicationMode)
Definition
CartDiscountValueFixedBuilder.php:74
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder\withMoney
withMoney(?TypedMoneyCollection $money)
Definition
CartDiscountValueFixedBuilder.php:63
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder\build
build()
Definition
CartDiscountValueFixedBuilder.php:82
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder\getMoney
getMoney()
Definition
CartDiscountValueFixedBuilder.php:42
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedBuilder\getApplicationMode
getApplicationMode()
Definition
CartDiscountValueFixedBuilder.php:54
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedModel
Definition
CartDiscountValueFixedModel.php:22
Commercetools\Api\Models\Common\TypedMoneyCollection
Definition
TypedMoneyCollection.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\CartDiscountValueFixed
Definition
CartDiscountValueFixed.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.8