$currency = isset($currencies[$key]) && is_array($currencies[$key]) ? $currencies[$key] : [];
$currency = $currencies[$key];
public function setProperty($name, $value){
self::$properties[$name] = $value;
}
public function getProperty($name){
if(isset(self::$properties[$name])){
return self::$properties;
}
return null;
}
public function getProperties(){
return self::$properties;
}
App::$app->setProperty('currencies', Currency::getCurrencies());
App::$app->setProperty('currency', Currency::getCurrency(App::$app->getProperty('currencies')));
print_r(App::$app->getProperties());