3 require __DIR__.
'/../vendor/autoload.php';
33 public static function __callStatic(\$method, \$arguments)
43 $currencies =
new Currencies\AggregateCurrencies([
48 $currencies = iterator_to_array($currencies);
51 return strcmp($a->getCode(), $b->getCode());
55 foreach ($currencies as $currency) {
56 $methodBuffer .= sprintf(
" * @method static Money %s(string|int \$amount)\n", $currency->getCode());
59 $buffer = str_replace(
'PHPDOC', rtrim($methodBuffer), $buffer);
61 file_put_contents(__DIR__.
'/../src/MoneyFactory.php', $buffer);