Commit fa027149 authored by Thorsten Buss's avatar Thorsten Buss

add Currency::getInstance for better currency usability

parent 47e3fabd
......@@ -66,6 +66,15 @@ class Currency {
$this->loadAttributes($this->code, $attributes);
}
/**
* @param $code
* @param array $attributes
* @return static
*/
public function getInstance($code, array $attributes = []) {
return new static($code, $attributes);
}
/**
* register a repository for loading the currency attributes
* @param CurrencyRepositoryInterface $repo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment