commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Common
CentPrecisionMoneyDraftBuilder.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Common
;
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
21
final
class
CentPrecisionMoneyDraftBuilder
implements
Builder
22
{
27
private
$centAmount;
28
33
private
$currencyCode;
34
39
private
$fractionDigits;
40
47
public
function
getCentAmount
()
48
{
49
return
$this->centAmount;
50
}
51
58
public
function
getCurrencyCode
()
59
{
60
return
$this->currencyCode;
61
}
62
69
public
function
getFractionDigits
()
70
{
71
return
$this->fractionDigits;
72
}
73
78
public
function
withCentAmount
(?
int
$centAmount)
79
{
80
$this->centAmount = $centAmount;
81
82
return
$this;
83
}
84
89
public
function
withCurrencyCode
(?
string
$currencyCode)
90
{
91
$this->currencyCode = $currencyCode;
92
93
return
$this;
94
}
95
100
public
function
withFractionDigits
(?
int
$fractionDigits)
101
{
102
$this->fractionDigits = $fractionDigits;
103
104
return
$this;
105
}
106
107
108
public
function
build
():
CentPrecisionMoneyDraft
109
{
110
return
new
CentPrecisionMoneyDraftModel
(
111
$this->centAmount,
112
$this->currencyCode,
113
$this->fractionDigits
114
);
115
}
116
117
public
static
function
of
():
CentPrecisionMoneyDraftBuilder
118
{
119
return
new
self
();
120
}
121
}
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder
Definition:
CentPrecisionMoneyDraftBuilder.php:22
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\withFractionDigits
withFractionDigits(?int $fractionDigits)
Definition:
CentPrecisionMoneyDraftBuilder.php:100
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\getFractionDigits
getFractionDigits()
Definition:
CentPrecisionMoneyDraftBuilder.php:69
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\build
build()
Definition:
CentPrecisionMoneyDraftBuilder.php:108
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\getCurrencyCode
getCurrencyCode()
Definition:
CentPrecisionMoneyDraftBuilder.php:58
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\withCentAmount
withCentAmount(?int $centAmount)
Definition:
CentPrecisionMoneyDraftBuilder.php:78
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\of
static of()
Definition:
CentPrecisionMoneyDraftBuilder.php:117
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\withCurrencyCode
withCurrencyCode(?string $currencyCode)
Definition:
CentPrecisionMoneyDraftBuilder.php:89
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftBuilder\getCentAmount
getCentAmount()
Definition:
CentPrecisionMoneyDraftBuilder.php:47
Commercetools\Api\Models\Common\CentPrecisionMoneyDraftModel
Definition:
CentPrecisionMoneyDraftModel.php:21
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Base\JsonObjectModel
Definition:
JsonObjectModel.php:15
Commercetools\Base\MapperFactory
Definition:
MapperFactory.php:16
Commercetools\Api\Models\Common\CentPrecisionMoneyDraft
Definition:
CentPrecisionMoneyDraft.php:15
Commercetools\Base\Builder
Definition:
Builder.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Common
Definition:
Address.php:9
Generated by
1.9.1