CurrencyReadService
in package
implements
CurrencyReadService
Class CurrencyReadService
Interfaces, Classes and Traits
- CurrencyReadService
- Interface CurrencyReadService
Table of Contents
- $factory : CurrencyFactory
- $repository : CurrencyRepository
- __construct() : mixed
- getAllCurrencies() : Currencies
- Returns a collection of all currencies.
- getCurrencyById() : Currency
- Returns a specific currency based on the given currency ID.
Properties
$factory
private
CurrencyFactory
$factory
$repository
private
CurrencyRepository
$repository
Methods
__construct()
public
__construct(CurrencyRepository $repository, CurrencyFactory $factory) : mixed
Parameters
- $repository : CurrencyRepository
- $factory : CurrencyFactory
Return values
mixed —getAllCurrencies()
Returns a collection of all currencies.
public
getAllCurrencies() : Currencies
Tags
Return values
Currencies —getCurrencyById()
Returns a specific currency based on the given currency ID.
public
getCurrencyById(int $currencyId) : Currency
Parameters
- $currencyId : int