commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Loading...
Searching...
No Matches
HighPrecisionMoneyDraftBuilder.php
1<?php
2
3declare(strict_types=1);
10
16use stdClass;
17
22{
27 private $centAmount;
28
33 private $currencyCode;
34
39 private $fractionDigits;
40
45 private $preciseAmount;
46
55 public function getCentAmount()
56 {
57 return $this->centAmount;
58 }
59
66 public function getCurrencyCode()
67 {
68 return $this->currencyCode;
69 }
70
77 public function getFractionDigits()
78 {
79 return $this->fractionDigits;
80 }
81
88 public function getPreciseAmount()
89 {
90 return $this->preciseAmount;
91 }
92
97 public function withCentAmount(?int $centAmount)
98 {
99 $this->centAmount = $centAmount;
100
101 return $this;
102 }
103
108 public function withCurrencyCode(?string $currencyCode)
109 {
110 $this->currencyCode = $currencyCode;
111
112 return $this;
113 }
114
119 public function withFractionDigits(?int $fractionDigits)
120 {
121 $this->fractionDigits = $fractionDigits;
122
123 return $this;
124 }
125
130 public function withPreciseAmount(?int $preciseAmount)
131 {
132 $this->preciseAmount = $preciseAmount;
133
134 return $this;
135 }
136
137
139 {
141 $this->centAmount,
142 $this->currencyCode,
143 $this->fractionDigits,
144 $this->preciseAmount
145 );
146 }
147
148 public static function of(): HighPrecisionMoneyDraftBuilder
149 {
150 return new self();
151 }
152}