SpecialOfferReaderInterface
in
Interface SpecialOfferReaderInterface
Table of Contents
- fetchAll() : array<string|int, mixed>|null
- Returns all special offers.
- fetchBy() : array<string|int, mixed>|null
- Fetches special offer data by the given condition.
- fetchById() : array<string|int, mixed>|null
- Fetches special offer data by the given id.
Methods
fetchAll()
Returns all special offers.
public
fetchAll([Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : array<string|int, mixed>|null
Parameters
- $pager : Pager|null = null
-
(Optional) Pager object with pagination information
- $sorters : array<string|int, mixed> = []
-
(Optional) array of Sorter objects with data sorting information
Return values
array<string|int, mixed>|null —Raw data of special offers.
fetchBy()
Fetches special offer data by the given condition.
public
fetchBy(StringType $searchCondition[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : array<string|int, mixed>|null
Parameters
- $searchCondition : StringType
-
Search condition for special offer data.
- $pager : Pager|null = null
-
(Optional) Pager object with pagination information
- $sorters : array<string|int, mixed> = []
-
(Optional) array of Sorter objects with data sorting information
Return values
array<string|int, mixed>|null —Raw data of special offers.
fetchById()
Fetches special offer data by the given id.
public
fetchById(IdType $specialOfferId) : array<string|int, mixed>|null
Parameters
- $specialOfferId : IdType
-
Id of expected special offer data.
Return values
array<string|int, mixed>|null —Raw data of a special offer.