Exemplo n.º 1
0
 /**
  * Returns a currency form its iso numeric code
  * @static
  * @param int $num
  * @return VadsCurrency
  */
 function findCurrencyByNumCode($numeric)
 {
     $list = VadsApi::getSupportedCurrencies();
     foreach ($list as $currency) {
         /** @var VadsCurrency $currency */
         if ($currency->num == $numeric) {
             return $currency;
         }
     }
     return null;
 }