Example #1
0
 /**
  * @param CurrencyEntity $currency
  * @return Currency
  */
 public static function createFromCurrencyEntity(CurrencyEntity $currency)
 {
     $struct = new self();
     $struct->setId($currency->getId());
     $struct->setName($currency->getName());
     $struct->setCurrency($currency->getCurrency());
     $struct->setFactor($currency->getFactor());
     $struct->setSymbol($currency->getSymbol());
     return $struct;
 }