commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
CartDiscount
CartDiscountValueFixedDraftBuilder.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
CartDiscountValueFixedDraftBuilder
implements
Builder
23
{
28
private
$money;
29
38
public
function
getMoney
()
39
{
40
return
$this->money;
41
}
42
47
public
function
withMoney
(?
MoneyCollection
$money)
48
{
49
$this->money = $money;
50
51
return
$this;
52
}
53
54
55
public
function
build
():
CartDiscountValueFixedDraft
56
{
57
return
new
CartDiscountValueFixedDraftModel
(
58
$this->money
59
);
60
}
61
62
public
static
function
of
():
CartDiscountValueFixedDraftBuilder
63
{
64
return
new
self
();
65
}
66
}
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedDraftBuilder
Definition:
CartDiscountValueFixedDraftBuilder.php:23
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedDraftBuilder\of
static of()
Definition:
CartDiscountValueFixedDraftBuilder.php:62
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedDraftBuilder\getMoney
getMoney()
Definition:
CartDiscountValueFixedDraftBuilder.php:38
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedDraftBuilder\withMoney
withMoney(?MoneyCollection $money)
Definition:
CartDiscountValueFixedDraftBuilder.php:47
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedDraftBuilder\build
build()
Definition:
CartDiscountValueFixedDraftBuilder.php:55
Commercetools\Api\Models\CartDiscount\CartDiscountValueFixedDraftModel
Definition:
CartDiscountValueFixedDraftModel.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\CartDiscountValueFixedDraft
Definition:
CartDiscountValueFixedDraft.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