commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CartDiscount
CartDiscountValueAbsoluteBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\CartDiscount
;
10
11
use
Commercetools\Api\Models\Common\CentPrecisionMoneyCollection
;
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
CartDiscountValueAbsoluteBuilder
implements
Builder
23
{
28
private
$money;
29
34
private
$applicationMode;
35
42
public
function
getMoney
()
43
{
44
return
$this->money;
45
}
46
53
public
function
getApplicationMode
()
54
{
55
return
$this->applicationMode;
56
}
57
62
public
function
withMoney
(?
CentPrecisionMoneyCollection
$money)
63
{
64
$this->money = $money;
65
66
return
$this;
67
}
68
73
public
function
withApplicationMode
(?
string
$applicationMode)
74
{
75
$this->applicationMode = $applicationMode;
76
77
return
$this;
78
}
79
80
81
public
function
build
():
CartDiscountValueAbsolute
82
{
83
return
new
CartDiscountValueAbsoluteModel
(
84
$this->money,
85
$this->applicationMode
86
);
87
}
88
89
public
static
function
of
():
CartDiscountValueAbsoluteBuilder
90
{
91
return
new
self
();
92
}
93
}
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder
Definition:
CartDiscountValueAbsoluteBuilder.php:23
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder\withApplicationMode
withApplicationMode(?string $applicationMode)
Definition:
CartDiscountValueAbsoluteBuilder.php:73
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder\getApplicationMode
getApplicationMode()
Definition:
CartDiscountValueAbsoluteBuilder.php:53
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder\getMoney
getMoney()
Definition:
CartDiscountValueAbsoluteBuilder.php:42
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder\build
build()
Definition:
CartDiscountValueAbsoluteBuilder.php:81
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder\of
static of()
Definition:
CartDiscountValueAbsoluteBuilder.php:89
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteBuilder\withMoney
withMoney(?CentPrecisionMoneyCollection $money)
Definition:
CartDiscountValueAbsoluteBuilder.php:62
Commercetools\Api\Models\CartDiscount\CartDiscountValueAbsoluteModel
Definition:
CartDiscountValueAbsoluteModel.php:22
Commercetools\Api\Models\Common\CentPrecisionMoneyCollection
Definition:
CentPrecisionMoneyCollection.php:22
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\CartDiscountValueAbsolute
Definition:
CartDiscountValueAbsolute.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