code: public function currency(float $number, string $currency = null): string
      {
          return $this->getCurrencyFormatter()->formatCurrency($number, $currency ? $currency : $this->currency);
      }
docs: Formats the given currency number for display.
  
  @param float  $number
  @param string $currency
  
  @return string