From 0689d3cc0933093144967fa4864aa5092fa29bf6 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 16 Apr 2021 20:26:48 +0200 Subject: [PATCH] Updated `MoneyFactory` static methods to require `numeric-string|int` rather than `string|int` --- resources/generate-money-factory.php | 2 +- src/MoneyFactory.php | 358 +++++++++++++-------------- 2 files changed, 180 insertions(+), 180 deletions(-) diff --git a/resources/generate-money-factory.php b/resources/generate-money-factory.php index b3760634..3323da4e 100644 --- a/resources/generate-money-factory.php +++ b/resources/generate-money-factory.php @@ -58,7 +58,7 @@ public static function __callStatic(string $method, array $arguments): Money /** @var Currency[] $currencies */ foreach ($currencies as $currency) { - $methodBuffer .= sprintf(" * @method static Money %s(string|int \$amount)\n", $currency->getCode()); + $methodBuffer .= sprintf(" * @method static Money %s(numeric-string|int \$amount)\n", $currency->getCode()); } $buffer = str_replace('PHPDOC', rtrim($methodBuffer), $buffer); diff --git a/src/MoneyFactory.php b/src/MoneyFactory.php index 49325712..19a9fffd 100644 --- a/src/MoneyFactory.php +++ b/src/MoneyFactory.php @@ -9,185 +9,185 @@ /** * This is a generated file. Do not edit it manually! * - * @method static Money AED(string|int $amount) - * @method static Money ALL(string|int $amount) - * @method static Money AMD(string|int $amount) - * @method static Money ANG(string|int $amount) - * @method static Money AOA(string|int $amount) - * @method static Money ARS(string|int $amount) - * @method static Money AUD(string|int $amount) - * @method static Money AWG(string|int $amount) - * @method static Money AZN(string|int $amount) - * @method static Money BAM(string|int $amount) - * @method static Money BBD(string|int $amount) - * @method static Money BDT(string|int $amount) - * @method static Money BGN(string|int $amount) - * @method static Money BHD(string|int $amount) - * @method static Money BIF(string|int $amount) - * @method static Money BMD(string|int $amount) - * @method static Money BND(string|int $amount) - * @method static Money BOB(string|int $amount) - * @method static Money BOV(string|int $amount) - * @method static Money BRL(string|int $amount) - * @method static Money BSD(string|int $amount) - * @method static Money BTN(string|int $amount) - * @method static Money BWP(string|int $amount) - * @method static Money BYN(string|int $amount) - * @method static Money BZD(string|int $amount) - * @method static Money CAD(string|int $amount) - * @method static Money CDF(string|int $amount) - * @method static Money CHE(string|int $amount) - * @method static Money CHF(string|int $amount) - * @method static Money CHW(string|int $amount) - * @method static Money CLF(string|int $amount) - * @method static Money CLP(string|int $amount) - * @method static Money CNY(string|int $amount) - * @method static Money COP(string|int $amount) - * @method static Money COU(string|int $amount) - * @method static Money CRC(string|int $amount) - * @method static Money CUC(string|int $amount) - * @method static Money CUP(string|int $amount) - * @method static Money CVE(string|int $amount) - * @method static Money CZK(string|int $amount) - * @method static Money DJF(string|int $amount) - * @method static Money DKK(string|int $amount) - * @method static Money DOP(string|int $amount) - * @method static Money DZD(string|int $amount) - * @method static Money EGP(string|int $amount) - * @method static Money ERN(string|int $amount) - * @method static Money ETB(string|int $amount) - * @method static Money EUR(string|int $amount) - * @method static Money FJD(string|int $amount) - * @method static Money FKP(string|int $amount) - * @method static Money GBP(string|int $amount) - * @method static Money GEL(string|int $amount) - * @method static Money GHS(string|int $amount) - * @method static Money GIP(string|int $amount) - * @method static Money GMD(string|int $amount) - * @method static Money GNF(string|int $amount) - * @method static Money GTQ(string|int $amount) - * @method static Money GYD(string|int $amount) - * @method static Money HKD(string|int $amount) - * @method static Money HNL(string|int $amount) - * @method static Money HRK(string|int $amount) - * @method static Money HTG(string|int $amount) - * @method static Money HUF(string|int $amount) - * @method static Money IDR(string|int $amount) - * @method static Money ILS(string|int $amount) - * @method static Money INR(string|int $amount) - * @method static Money IQD(string|int $amount) - * @method static Money IRR(string|int $amount) - * @method static Money ISK(string|int $amount) - * @method static Money JMD(string|int $amount) - * @method static Money JOD(string|int $amount) - * @method static Money JPY(string|int $amount) - * @method static Money KES(string|int $amount) - * @method static Money KGS(string|int $amount) - * @method static Money KHR(string|int $amount) - * @method static Money KMF(string|int $amount) - * @method static Money KPW(string|int $amount) - * @method static Money KRW(string|int $amount) - * @method static Money KWD(string|int $amount) - * @method static Money KYD(string|int $amount) - * @method static Money KZT(string|int $amount) - * @method static Money LAK(string|int $amount) - * @method static Money LBP(string|int $amount) - * @method static Money LKR(string|int $amount) - * @method static Money LRD(string|int $amount) - * @method static Money LSL(string|int $amount) - * @method static Money LYD(string|int $amount) - * @method static Money MAD(string|int $amount) - * @method static Money MDL(string|int $amount) - * @method static Money MGA(string|int $amount) - * @method static Money MKD(string|int $amount) - * @method static Money MMK(string|int $amount) - * @method static Money MNT(string|int $amount) - * @method static Money MOP(string|int $amount) - * @method static Money MRU(string|int $amount) - * @method static Money MUR(string|int $amount) - * @method static Money MVR(string|int $amount) - * @method static Money MWK(string|int $amount) - * @method static Money MXN(string|int $amount) - * @method static Money MXV(string|int $amount) - * @method static Money MYR(string|int $amount) - * @method static Money MZN(string|int $amount) - * @method static Money NAD(string|int $amount) - * @method static Money NGN(string|int $amount) - * @method static Money NIO(string|int $amount) - * @method static Money NOK(string|int $amount) - * @method static Money NPR(string|int $amount) - * @method static Money NZD(string|int $amount) - * @method static Money OMR(string|int $amount) - * @method static Money PAB(string|int $amount) - * @method static Money PEN(string|int $amount) - * @method static Money PGK(string|int $amount) - * @method static Money PHP(string|int $amount) - * @method static Money PKR(string|int $amount) - * @method static Money PLN(string|int $amount) - * @method static Money PYG(string|int $amount) - * @method static Money QAR(string|int $amount) - * @method static Money RON(string|int $amount) - * @method static Money RSD(string|int $amount) - * @method static Money RUB(string|int $amount) - * @method static Money RWF(string|int $amount) - * @method static Money SAR(string|int $amount) - * @method static Money SBD(string|int $amount) - * @method static Money SCR(string|int $amount) - * @method static Money SDG(string|int $amount) - * @method static Money SEK(string|int $amount) - * @method static Money SGD(string|int $amount) - * @method static Money SHP(string|int $amount) - * @method static Money SLL(string|int $amount) - * @method static Money SOS(string|int $amount) - * @method static Money SRD(string|int $amount) - * @method static Money SSP(string|int $amount) - * @method static Money STN(string|int $amount) - * @method static Money SVC(string|int $amount) - * @method static Money SYP(string|int $amount) - * @method static Money SZL(string|int $amount) - * @method static Money THB(string|int $amount) - * @method static Money TJS(string|int $amount) - * @method static Money TMT(string|int $amount) - * @method static Money TND(string|int $amount) - * @method static Money TOP(string|int $amount) - * @method static Money TRY(string|int $amount) - * @method static Money TTD(string|int $amount) - * @method static Money TWD(string|int $amount) - * @method static Money TZS(string|int $amount) - * @method static Money UAH(string|int $amount) - * @method static Money UGX(string|int $amount) - * @method static Money USD(string|int $amount) - * @method static Money USN(string|int $amount) - * @method static Money UYI(string|int $amount) - * @method static Money UYU(string|int $amount) - * @method static Money UYW(string|int $amount) - * @method static Money UZS(string|int $amount) - * @method static Money VES(string|int $amount) - * @method static Money VND(string|int $amount) - * @method static Money VUV(string|int $amount) - * @method static Money WST(string|int $amount) - * @method static Money XAF(string|int $amount) - * @method static Money XAG(string|int $amount) - * @method static Money XAU(string|int $amount) - * @method static Money XBA(string|int $amount) - * @method static Money XBB(string|int $amount) - * @method static Money XBC(string|int $amount) - * @method static Money XBD(string|int $amount) - * @method static Money XBT(string|int $amount) - * @method static Money XCD(string|int $amount) - * @method static Money XDR(string|int $amount) - * @method static Money XOF(string|int $amount) - * @method static Money XPD(string|int $amount) - * @method static Money XPF(string|int $amount) - * @method static Money XPT(string|int $amount) - * @method static Money XSU(string|int $amount) - * @method static Money XTS(string|int $amount) - * @method static Money XUA(string|int $amount) - * @method static Money XXX(string|int $amount) - * @method static Money YER(string|int $amount) - * @method static Money ZAR(string|int $amount) - * @method static Money ZMW(string|int $amount) - * @method static Money ZWL(string|int $amount) + * @method static Money AED(numeric-string|int $amount) + * @method static Money ALL(numeric-string|int $amount) + * @method static Money AMD(numeric-string|int $amount) + * @method static Money ANG(numeric-string|int $amount) + * @method static Money AOA(numeric-string|int $amount) + * @method static Money ARS(numeric-string|int $amount) + * @method static Money AUD(numeric-string|int $amount) + * @method static Money AWG(numeric-string|int $amount) + * @method static Money AZN(numeric-string|int $amount) + * @method static Money BAM(numeric-string|int $amount) + * @method static Money BBD(numeric-string|int $amount) + * @method static Money BDT(numeric-string|int $amount) + * @method static Money BGN(numeric-string|int $amount) + * @method static Money BHD(numeric-string|int $amount) + * @method static Money BIF(numeric-string|int $amount) + * @method static Money BMD(numeric-string|int $amount) + * @method static Money BND(numeric-string|int $amount) + * @method static Money BOB(numeric-string|int $amount) + * @method static Money BOV(numeric-string|int $amount) + * @method static Money BRL(numeric-string|int $amount) + * @method static Money BSD(numeric-string|int $amount) + * @method static Money BTN(numeric-string|int $amount) + * @method static Money BWP(numeric-string|int $amount) + * @method static Money BYN(numeric-string|int $amount) + * @method static Money BZD(numeric-string|int $amount) + * @method static Money CAD(numeric-string|int $amount) + * @method static Money CDF(numeric-string|int $amount) + * @method static Money CHE(numeric-string|int $amount) + * @method static Money CHF(numeric-string|int $amount) + * @method static Money CHW(numeric-string|int $amount) + * @method static Money CLF(numeric-string|int $amount) + * @method static Money CLP(numeric-string|int $amount) + * @method static Money CNY(numeric-string|int $amount) + * @method static Money COP(numeric-string|int $amount) + * @method static Money COU(numeric-string|int $amount) + * @method static Money CRC(numeric-string|int $amount) + * @method static Money CUC(numeric-string|int $amount) + * @method static Money CUP(numeric-string|int $amount) + * @method static Money CVE(numeric-string|int $amount) + * @method static Money CZK(numeric-string|int $amount) + * @method static Money DJF(numeric-string|int $amount) + * @method static Money DKK(numeric-string|int $amount) + * @method static Money DOP(numeric-string|int $amount) + * @method static Money DZD(numeric-string|int $amount) + * @method static Money EGP(numeric-string|int $amount) + * @method static Money ERN(numeric-string|int $amount) + * @method static Money ETB(numeric-string|int $amount) + * @method static Money EUR(numeric-string|int $amount) + * @method static Money FJD(numeric-string|int $amount) + * @method static Money FKP(numeric-string|int $amount) + * @method static Money GBP(numeric-string|int $amount) + * @method static Money GEL(numeric-string|int $amount) + * @method static Money GHS(numeric-string|int $amount) + * @method static Money GIP(numeric-string|int $amount) + * @method static Money GMD(numeric-string|int $amount) + * @method static Money GNF(numeric-string|int $amount) + * @method static Money GTQ(numeric-string|int $amount) + * @method static Money GYD(numeric-string|int $amount) + * @method static Money HKD(numeric-string|int $amount) + * @method static Money HNL(numeric-string|int $amount) + * @method static Money HRK(numeric-string|int $amount) + * @method static Money HTG(numeric-string|int $amount) + * @method static Money HUF(numeric-string|int $amount) + * @method static Money IDR(numeric-string|int $amount) + * @method static Money ILS(numeric-string|int $amount) + * @method static Money INR(numeric-string|int $amount) + * @method static Money IQD(numeric-string|int $amount) + * @method static Money IRR(numeric-string|int $amount) + * @method static Money ISK(numeric-string|int $amount) + * @method static Money JMD(numeric-string|int $amount) + * @method static Money JOD(numeric-string|int $amount) + * @method static Money JPY(numeric-string|int $amount) + * @method static Money KES(numeric-string|int $amount) + * @method static Money KGS(numeric-string|int $amount) + * @method static Money KHR(numeric-string|int $amount) + * @method static Money KMF(numeric-string|int $amount) + * @method static Money KPW(numeric-string|int $amount) + * @method static Money KRW(numeric-string|int $amount) + * @method static Money KWD(numeric-string|int $amount) + * @method static Money KYD(numeric-string|int $amount) + * @method static Money KZT(numeric-string|int $amount) + * @method static Money LAK(numeric-string|int $amount) + * @method static Money LBP(numeric-string|int $amount) + * @method static Money LKR(numeric-string|int $amount) + * @method static Money LRD(numeric-string|int $amount) + * @method static Money LSL(numeric-string|int $amount) + * @method static Money LYD(numeric-string|int $amount) + * @method static Money MAD(numeric-string|int $amount) + * @method static Money MDL(numeric-string|int $amount) + * @method static Money MGA(numeric-string|int $amount) + * @method static Money MKD(numeric-string|int $amount) + * @method static Money MMK(numeric-string|int $amount) + * @method static Money MNT(numeric-string|int $amount) + * @method static Money MOP(numeric-string|int $amount) + * @method static Money MRU(numeric-string|int $amount) + * @method static Money MUR(numeric-string|int $amount) + * @method static Money MVR(numeric-string|int $amount) + * @method static Money MWK(numeric-string|int $amount) + * @method static Money MXN(numeric-string|int $amount) + * @method static Money MXV(numeric-string|int $amount) + * @method static Money MYR(numeric-string|int $amount) + * @method static Money MZN(numeric-string|int $amount) + * @method static Money NAD(numeric-string|int $amount) + * @method static Money NGN(numeric-string|int $amount) + * @method static Money NIO(numeric-string|int $amount) + * @method static Money NOK(numeric-string|int $amount) + * @method static Money NPR(numeric-string|int $amount) + * @method static Money NZD(numeric-string|int $amount) + * @method static Money OMR(numeric-string|int $amount) + * @method static Money PAB(numeric-string|int $amount) + * @method static Money PEN(numeric-string|int $amount) + * @method static Money PGK(numeric-string|int $amount) + * @method static Money PHP(numeric-string|int $amount) + * @method static Money PKR(numeric-string|int $amount) + * @method static Money PLN(numeric-string|int $amount) + * @method static Money PYG(numeric-string|int $amount) + * @method static Money QAR(numeric-string|int $amount) + * @method static Money RON(numeric-string|int $amount) + * @method static Money RSD(numeric-string|int $amount) + * @method static Money RUB(numeric-string|int $amount) + * @method static Money RWF(numeric-string|int $amount) + * @method static Money SAR(numeric-string|int $amount) + * @method static Money SBD(numeric-string|int $amount) + * @method static Money SCR(numeric-string|int $amount) + * @method static Money SDG(numeric-string|int $amount) + * @method static Money SEK(numeric-string|int $amount) + * @method static Money SGD(numeric-string|int $amount) + * @method static Money SHP(numeric-string|int $amount) + * @method static Money SLL(numeric-string|int $amount) + * @method static Money SOS(numeric-string|int $amount) + * @method static Money SRD(numeric-string|int $amount) + * @method static Money SSP(numeric-string|int $amount) + * @method static Money STN(numeric-string|int $amount) + * @method static Money SVC(numeric-string|int $amount) + * @method static Money SYP(numeric-string|int $amount) + * @method static Money SZL(numeric-string|int $amount) + * @method static Money THB(numeric-string|int $amount) + * @method static Money TJS(numeric-string|int $amount) + * @method static Money TMT(numeric-string|int $amount) + * @method static Money TND(numeric-string|int $amount) + * @method static Money TOP(numeric-string|int $amount) + * @method static Money TRY(numeric-string|int $amount) + * @method static Money TTD(numeric-string|int $amount) + * @method static Money TWD(numeric-string|int $amount) + * @method static Money TZS(numeric-string|int $amount) + * @method static Money UAH(numeric-string|int $amount) + * @method static Money UGX(numeric-string|int $amount) + * @method static Money USD(numeric-string|int $amount) + * @method static Money USN(numeric-string|int $amount) + * @method static Money UYI(numeric-string|int $amount) + * @method static Money UYU(numeric-string|int $amount) + * @method static Money UYW(numeric-string|int $amount) + * @method static Money UZS(numeric-string|int $amount) + * @method static Money VES(numeric-string|int $amount) + * @method static Money VND(numeric-string|int $amount) + * @method static Money VUV(numeric-string|int $amount) + * @method static Money WST(numeric-string|int $amount) + * @method static Money XAF(numeric-string|int $amount) + * @method static Money XAG(numeric-string|int $amount) + * @method static Money XAU(numeric-string|int $amount) + * @method static Money XBA(numeric-string|int $amount) + * @method static Money XBB(numeric-string|int $amount) + * @method static Money XBC(numeric-string|int $amount) + * @method static Money XBD(numeric-string|int $amount) + * @method static Money XBT(numeric-string|int $amount) + * @method static Money XCD(numeric-string|int $amount) + * @method static Money XDR(numeric-string|int $amount) + * @method static Money XOF(numeric-string|int $amount) + * @method static Money XPD(numeric-string|int $amount) + * @method static Money XPF(numeric-string|int $amount) + * @method static Money XPT(numeric-string|int $amount) + * @method static Money XSU(numeric-string|int $amount) + * @method static Money XTS(numeric-string|int $amount) + * @method static Money XUA(numeric-string|int $amount) + * @method static Money XXX(numeric-string|int $amount) + * @method static Money YER(numeric-string|int $amount) + * @method static Money ZAR(numeric-string|int $amount) + * @method static Money ZMW(numeric-string|int $amount) + * @method static Money ZWL(numeric-string|int $amount) * @psalm-immutable */ trait MoneyFactory