/** * Returns active currency corresponding code * * @return int */ public function getActiveCurrencyCode() { $currency = $this->billingService->getActiveCurrency(); if (mb_strlen($currency) && key_exists($currency, self::$currencies)) { return self::$currencies[$currency]; } return null; }