/** * return property of currency * @example ->getSymbol(); ->getSymbol('usd'); * @param string $name * @param strong $args * @return mixed */ public function __call($name, $args) { $n = \strtolower(\substr($name, 3)); if ($this->download->getProperty($n)) { return $this->getCurrency(!isset($args[0]) ? $this->key : $args[0], $n); } throw new ExchangeException('Call undefined method ' . $name); }