| 1 |
<?php |
| 2 |
|
| 3 |
namespace Money; |
| 4 |
|
| 5 |
/** |
| 6 |
* This is a generated file. Do not edit it manually! |
| 7 |
* |
| 8 |
* @method static Money AED(string|int $amount) |
| 9 |
* @method static Money ALL(string|int $amount) |
| 10 |
* @method static Money AMD(string|int $amount) |
| 11 |
* @method static Money ANG(string|int $amount) |
| 12 |
* @method static Money AOA(string|int $amount) |
| 13 |
* @method static Money ARS(string|int $amount) |
| 14 |
* @method static Money AUD(string|int $amount) |
| 15 |
* @method static Money AWG(string|int $amount) |
| 16 |
* @method static Money AZN(string|int $amount) |
| 17 |
* @method static Money BAM(string|int $amount) |
| 18 |
* @method static Money BBD(string|int $amount) |
| 19 |
* @method static Money BDT(string|int $amount) |
| 20 |
* @method static Money BGN(string|int $amount) |
| 21 |
* @method static Money BHD(string|int $amount) |
| 22 |
* @method static Money BIF(string|int $amount) |
| 23 |
* @method static Money BMD(string|int $amount) |
| 24 |
* @method static Money BND(string|int $amount) |
| 25 |
* @method static Money BOB(string|int $amount) |
| 26 |
* @method static Money BOV(string|int $amount) |
| 27 |
* @method static Money BRL(string|int $amount) |
| 28 |
* @method static Money BSD(string|int $amount) |
| 29 |
* @method static Money BTN(string|int $amount) |
| 30 |
* @method static Money BWP(string|int $amount) |
| 31 |
* @method static Money BYN(string|int $amount) |
| 32 |
* @method static Money BZD(string|int $amount) |
| 33 |
* @method static Money CAD(string|int $amount) |
| 34 |
* @method static Money CDF(string|int $amount) |
| 35 |
* @method static Money CHE(string|int $amount) |
| 36 |
* @method static Money CHF(string|int $amount) |
| 37 |
* @method static Money CHW(string|int $amount) |
| 38 |
* @method static Money CLF(string|int $amount) |
| 39 |
* @method static Money CLP(string|int $amount) |
| 40 |
* @method static Money CNY(string|int $amount) |
| 41 |
* @method static Money COP(string|int $amount) |
| 42 |
* @method static Money COU(string|int $amount) |
| 43 |
* @method static Money CRC(string|int $amount) |
| 44 |
* @method static Money CUC(string|int $amount) |
| 45 |
* @method static Money CUP(string|int $amount) |
| 46 |
* @method static Money CVE(string|int $amount) |
| 47 |
* @method static Money CZK(string|int $amount) |
| 48 |
* @method static Money DJF(string|int $amount) |
| 49 |
* @method static Money DKK(string|int $amount) |
| 50 |
* @method static Money DOP(string|int $amount) |
| 51 |
* @method static Money DZD(string|int $amount) |
| 52 |
* @method static Money EGP(string|int $amount) |
| 53 |
* @method static Money ERN(string|int $amount) |
| 54 |
* @method static Money ETB(string|int $amount) |
| 55 |
* @method static Money EUR(string|int $amount) |
| 56 |
* @method static Money FJD(string|int $amount) |
| 57 |
* @method static Money FKP(string|int $amount) |
| 58 |
* @method static Money GBP(string|int $amount) |
| 59 |
* @method static Money GEL(string|int $amount) |
| 60 |
* @method static Money GHS(string|int $amount) |
| 61 |
* @method static Money GIP(string|int $amount) |
| 62 |
* @method static Money GMD(string|int $amount) |
| 63 |
* @method static Money GNF(string|int $amount) |
| 64 |
* @method static Money GTQ(string|int $amount) |
| 65 |
* @method static Money GYD(string|int $amount) |
| 66 |
* @method static Money HKD(string|int $amount) |
| 67 |
* @method static Money HNL(string|int $amount) |
| 68 |
* @method static Money HRK(string|int $amount) |
| 69 |
* @method static Money HTG(string|int $amount) |
| 70 |
* @method static Money HUF(string|int $amount) |
| 71 |
* @method static Money IDR(string|int $amount) |
| 72 |
* @method static Money ILS(string|int $amount) |
| 73 |
* @method static Money INR(string|int $amount) |
| 74 |
* @method static Money IQD(string|int $amount) |
| 75 |
* @method static Money IRR(string|int $amount) |
| 76 |
* @method static Money ISK(string|int $amount) |
| 77 |
* @method static Money JMD(string|int $amount) |
| 78 |
* @method static Money JOD(string|int $amount) |
| 79 |
* @method static Money JPY(string|int $amount) |
| 80 |
* @method static Money KES(string|int $amount) |
| 81 |
* @method static Money KGS(string|int $amount) |
| 82 |
* @method static Money KHR(string|int $amount) |
| 83 |
* @method static Money KMF(string|int $amount) |
| 84 |
* @method static Money KPW(string|int $amount) |
| 85 |
* @method static Money KRW(string|int $amount) |
| 86 |
* @method static Money KWD(string|int $amount) |
| 87 |
* @method static Money KYD(string|int $amount) |
| 88 |
* @method static Money KZT(string|int $amount) |
| 89 |
* @method static Money LAK(string|int $amount) |
| 90 |
* @method static Money LBP(string|int $amount) |
| 91 |
* @method static Money LKR(string|int $amount) |
| 92 |
* @method static Money LRD(string|int $amount) |
| 93 |
* @method static Money LSL(string|int $amount) |
| 94 |
* @method static Money LYD(string|int $amount) |
| 95 |
* @method static Money MAD(string|int $amount) |
| 96 |
* @method static Money MDL(string|int $amount) |
| 97 |
* @method static Money MGA(string|int $amount) |
| 98 |
* @method static Money MKD(string|int $amount) |
| 99 |
* @method static Money MMK(string|int $amount) |
| 100 |
* @method static Money MNT(string|int $amount) |
| 101 |
* @method static Money MOP(string|int $amount) |
| 102 |
* @method static Money MRU(string|int $amount) |
| 103 |
* @method static Money MUR(string|int $amount) |
| 104 |
* @method static Money MVR(string|int $amount) |
| 105 |
* @method static Money MWK(string|int $amount) |
| 106 |
* @method static Money MXN(string|int $amount) |
| 107 |
* @method static Money MXV(string|int $amount) |
| 108 |
* @method static Money MYR(string|int $amount) |
| 109 |
* @method static Money MZN(string|int $amount) |
| 110 |
* @method static Money NAD(string|int $amount) |
| 111 |
* @method static Money NGN(string|int $amount) |
| 112 |
* @method static Money NIO(string|int $amount) |
| 113 |
* @method static Money NOK(string|int $amount) |
| 114 |
* @method static Money NPR(string|int $amount) |
| 115 |
* @method static Money NZD(string|int $amount) |
| 116 |
* @method static Money OMR(string|int $amount) |
| 117 |
* @method static Money PAB(string|int $amount) |
| 118 |
* @method static Money PEN(string|int $amount) |
| 119 |
* @method static Money PGK(string|int $amount) |
| 120 |
* @method static Money PHP(string|int $amount) |
| 121 |
* @method static Money PKR(string|int $amount) |
| 122 |
* @method static Money PLN(string|int $amount) |
| 123 |
* @method static Money PYG(string|int $amount) |
| 124 |
* @method static Money QAR(string|int $amount) |
| 125 |
* @method static Money RON(string|int $amount) |
| 126 |
* @method static Money RSD(string|int $amount) |
| 127 |
* @method static Money RUB(string|int $amount) |
| 128 |
* @method static Money RWF(string|int $amount) |
| 129 |
* @method static Money SAR(string|int $amount) |
| 130 |
* @method static Money SBD(string|int $amount) |
| 131 |
* @method static Money SCR(string|int $amount) |
| 132 |
* @method static Money SDG(string|int $amount) |
| 133 |
* @method static Money SEK(string|int $amount) |
| 134 |
* @method static Money SGD(string|int $amount) |
| 135 |
* @method static Money SHP(string|int $amount) |
| 136 |
* @method static Money SLL(string|int $amount) |
| 137 |
* @method static Money SOS(string|int $amount) |
| 138 |
* @method static Money SRD(string|int $amount) |
| 139 |
* @method static Money SSP(string|int $amount) |
| 140 |
* @method static Money STN(string|int $amount) |
| 141 |
* @method static Money SVC(string|int $amount) |
| 142 |
* @method static Money SYP(string|int $amount) |
| 143 |
* @method static Money SZL(string|int $amount) |
| 144 |
* @method static Money THB(string|int $amount) |
| 145 |
* @method static Money TJS(string|int $amount) |
| 146 |
* @method static Money TMT(string|int $amount) |
| 147 |
* @method static Money TND(string|int $amount) |
| 148 |
* @method static Money TOP(string|int $amount) |
| 149 |
* @method static Money TRY(string|int $amount) |
| 150 |
* @method static Money TTD(string|int $amount) |
| 151 |
* @method static Money TWD(string|int $amount) |
| 152 |
* @method static Money TZS(string|int $amount) |
| 153 |
* @method static Money UAH(string|int $amount) |
| 154 |
* @method static Money UGX(string|int $amount) |
| 155 |
* @method static Money USD(string|int $amount) |
| 156 |
* @method static Money USN(string|int $amount) |
| 157 |
* @method static Money UYI(string|int $amount) |
| 158 |
* @method static Money UYU(string|int $amount) |
| 159 |
* @method static Money UYW(string|int $amount) |
| 160 |
* @method static Money UZS(string|int $amount) |
| 161 |
* @method static Money VES(string|int $amount) |
| 162 |
* @method static Money VND(string|int $amount) |
| 163 |
* @method static Money VUV(string|int $amount) |
| 164 |
* @method static Money WST(string|int $amount) |
| 165 |
* @method static Money XAF(string|int $amount) |
| 166 |
* @method static Money XAG(string|int $amount) |
| 167 |
* @method static Money XAU(string|int $amount) |
| 168 |
* @method static Money XBA(string|int $amount) |
| 169 |
* @method static Money XBB(string|int $amount) |
| 170 |
* @method static Money XBC(string|int $amount) |
| 171 |
* @method static Money XBD(string|int $amount) |
| 172 |
* @method static Money XBT(string|int $amount) |
| 173 |
* @method static Money XCD(string|int $amount) |
| 174 |
* @method static Money XDR(string|int $amount) |
| 175 |
* @method static Money XOF(string|int $amount) |
| 176 |
* @method static Money XPD(string|int $amount) |
| 177 |
* @method static Money XPF(string|int $amount) |
| 178 |
* @method static Money XPT(string|int $amount) |
| 179 |
* @method static Money XSU(string|int $amount) |
| 180 |
* @method static Money XTS(string|int $amount) |
| 181 |
* @method static Money XUA(string|int $amount) |
| 182 |
* @method static Money XXX(string|int $amount) |
| 183 |
* @method static Money YER(string|int $amount) |
| 184 |
* @method static Money ZAR(string|int $amount) |
| 185 |
* @method static Money ZMW(string|int $amount) |
| 186 |
* @method static Money ZWL(string|int $amount) |
| 187 |
*/ |
| 188 |
trait MoneyFactory |
| 189 |
{ |
| 190 |
/** |
| 191 |
* Convenience factory method for a Money object. |
| 192 |
* |
| 193 |
* <code> |
| 194 |
* $fiveDollar = Money::USD(500); |
| 195 |
* </code> |
| 196 |
* |
| 197 |
* @param string $method |
| 198 |
* @param array $arguments |
| 199 |
* |
| 200 |
* @return Money |
| 201 |
* |
| 202 |
* @throws \InvalidArgumentException If amount is not integer(ish) |
| 203 |
*/ |
| 204 |
public static function __callStatic($method, $arguments) |
| 205 |
{ |
| 206 |
return new Money($arguments[0], new Currency($method)); |
| 207 |
} |
| 208 |
} |
| 209 |
|