CurrencyConverter

Namespace

IO\Helper

Properties
Type Name Description

CurrencyExchangeRepositoryContract

$currencyExchcangeRepo

Methods
public __construct($currencyExchangeRepo)

CurrencyConverter constructor.

Parameters

Type

Name

Description

CurrencyExchangeRepositoryContract

$currencyExchangeRepo

public isCurrentCurrencyDefault():bool
public getDefaultCurrency():string
public getCurrentCurrency():string
public convertToDefaultCurrency($amount):float
Parameters

Type

Name

Description

float

$amount