public function Currency::resourceDump in Currency 7.2
Dumps this object to YAML code.
Return value
string
File
- currency/
vendor/ bartfeenstra/ currency/ src/ BartFeenstra/ Currency/ Currency.php, line 156 - Contains class \BartFeenstra\Currency\Currency.
Class
- Currency
- Describes a currency.
Namespace
BartFeenstra\CurrencyCode
public function resourceDump() {
$currency_data = get_object_vars($this);
$currency_data['usage'] = array();
foreach ($this->usage as $usage) {
$currency_data['usage'][] = get_object_vars($usage);
}
return Yaml::dump($currency_data);
}