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
56 public function getCentAmount()
57 {
58 return $this->centAmount;
59 }
60
67 public function getCurrencyCode()
68 {
69 return $this->currencyCode;
70 }
71
78 public function getFractionDigits()
79 {
80 return $this->fractionDigits;
81 }
82
90 public function getPreciseAmount()
91 {
92 return $this->preciseAmount;
93 }
94
99 public function withCentAmount(?int $centAmount)
100 {
101 $this->centAmount = $centAmount;
102
103 return $this;
104 }
105
110 public function withCurrencyCode(?string $currencyCode)
111 {
112 $this->currencyCode = $currencyCode;
113
114 return $this;
115 }
116
121 public function withFractionDigits(?int $fractionDigits)
122 {
123 $this->fractionDigits = $fractionDigits;
124
125 return $this;
126 }
127
132 public function withPreciseAmount(?int $preciseAmount)
133 {
134 $this->preciseAmount = $preciseAmount;
135
136 return $this;
137 }
138
139
141 {
143 $this->centAmount,
144 $this->currencyCode,
145 $this->fractionDigits,
146 $this->preciseAmount
147 );
148 }
149
150 public static function of(): HighPrecisionMoneyDraftBuilder
151 {
152 return new self();
153 }
154}