CurrencyRepository
in package
implements
CurrencyRepository
Class CurrencyRepository
Interfaces, Classes and Traits
- CurrencyRepository
- Interface CurrencyRepository
Table of Contents
- $mapper : CurrencyMapper
- $reader : CurrencyReader
- __construct() : mixed
- filterCurrencies() : Currencies
- Returns a filtered, sorted, paginated collection of currencies.
- getAllCurrencies() : Currencies
- Returns a collection of all currencies.
- getCurrenciesTotalCount() : int
- Returns the total count of filtered currencies.
- getCurrencyById() : Currency
- Returns a specific currency based on the given currency ID.
Properties
$mapper
private
CurrencyMapper
$mapper
$reader
private
CurrencyReader
$reader
Methods
__construct()
public
__construct(CurrencyReader $reader, CurrencyMapper $mapper) : mixed
Parameters
- $reader : CurrencyReader
- $mapper : CurrencyMapper
Return values
mixed —filterCurrencies()
Returns a filtered, sorted, paginated collection of currencies.
public
filterCurrencies(Filters $filters, Sorting $sorting, Pagination $pagination) : Currencies
Parameters
- $filters : Filters
- $sorting : Sorting
- $pagination : Pagination
Tags
Return values
Currencies —getAllCurrencies()
Returns a collection of all currencies.
public
getAllCurrencies() : Currencies
Tags
Return values
Currencies —getCurrenciesTotalCount()
Returns the total count of filtered currencies.
public
getCurrenciesTotalCount(Filters $filters) : int
Parameters
- $filters : Filters
Tags
Return values
int —getCurrencyById()
Returns a specific currency based on the given currency ID.
public
getCurrencyById(CurrencyId $currencyId) : Currency
Parameters
- $currencyId : CurrencyId