@@ -22,6 +22,7 @@ public function getCurrency(): Currency;
2222 * For converting between currencies use `convertInto()` method
2323 * @param Currency|string $currency
2424 * @return self
25+ * @throws \PostScripton\Money\Exceptions\CurrencyDoesNotExistException
2526 */
2627 public function setCurrency (Currency |string $ currency ): self ;
2728
@@ -73,6 +74,7 @@ public function multiply(string $multiplier): self;
7374 * @param string $divisor <p>
7475 * A number on which the money will be divided </p>
7576 * @return self
77+ * @throws \InvalidArgumentException
7678 */
7779 public function divide (string $ divisor ): self ;
7880
@@ -203,6 +205,7 @@ public function equals(Money $money, bool $strict = true): bool;
203205 * @param Carbon|null $date <p>
204206 * Historical mode. Pass the date you want to get rate of </p>
205207 * @return Money
208+ * @throws \PostScripton\Money\Exceptions\CurrencyDoesNotExistException
206209 * @throws \PostScripton\Money\Exceptions\CurrenciesNotSupportedByRateExchangerException
207210 * @throws \PostScripton\Money\Exceptions\RateExchangerException
208211 */
@@ -216,6 +219,7 @@ public function convertTo(Currency|string $to, ?Carbon $date = null): Money;
216219 * Currency you want to convert to </p>
217220 * @param string $rate
218221 * @return Money
222+ * @throws \PostScripton\Money\Exceptions\CurrencyDoesNotExistException
219223 */
220224 public function offlineConvertTo (Currency |string $ currency , string $ rate ): Money ;
221225
@@ -256,13 +260,16 @@ public static function setFormatter(MoneyFormatter $formatter): void;
256260 * Raw amount: 12345 stands for 1.2345 </p>
257261 * @param Currency|string|null $currency
258262 * @return self
263+ * @throws \InvalidArgumentException
264+ * @throws \PostScripton\Money\Exceptions\CurrencyDoesNotExistException
259265 */
260266 public static function of (string $ amount , Currency |string |null $ currency = null ): Money ;
261267
262268 /**
263269 * Empty monetary object
264270 * @param Currency|string|null $currency
265271 * @return Money
272+ * @throws \PostScripton\Money\Exceptions\CurrencyDoesNotExistException
266273 */
267274 public static function zero (Currency |string |null $ currency = null ): Money ;
268275
@@ -271,6 +278,8 @@ public static function zero(Currency|string|null $currency = null): Money;
271278 * @param string $money
272279 * @param Currency|string|null $currency
273280 * @return self
281+ * @throws \Exception
282+ * @throws \PostScripton\Money\Exceptions\CurrencyDoesNotExistException
274283 */
275284 public static function parse (string $ money , Currency |string |null $ currency = null ): Money ;
276285
0 commit comments