phpDocumentor

SpecialOfferMapper
in package
implements SpecialOfferMapperInterface

Class SpecialOfferMapper

Interfaces, Classes and Traits

SpecialOfferMapperInterface
Interface SpecialOfferMapperInterface

Table of Contents

$reader  : SpecialOfferReaderInterface
$writer  : SpecialOfferWriterInterface
__construct()  : mixed
SpecialOfferMapper constructor.
delete()  : void
Deletes the given special offer from the storage.
findAll()  : SpecialOfferCollection|null
Returns all special offers.
findBy()  : SpecialOfferCollection|null
Returns all special offers that matches the given search condition.
findById()  : SpecialOfferInterface|null
Returns a special offer by the given id.
save()  : SpecialOfferInterface
Saves the given special offer in the storage.
update()  : SpecialOfferInterface
Updates the given special offer in the storage.
_mapCollection()  : SpecialOfferCollection
Maps the given data to a special offer collection.
_mapSpecialOffer()  : SpecialOffer
Maps the given data to a special offer entity.

Properties

Methods

findAll()

Returns all special offers.

public findAll([Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : SpecialOfferCollection|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
SpecialOfferCollection|null

List of special offers.

findBy()

Returns all special offers that matches the given search condition.

public findBy(SpecialOfferSearchCondition $searchCondition[, Pager|null $pager = null ][, array<string|int, mixed> $sorters = [] ]) : SpecialOfferCollection|null
Parameters
$searchCondition : SpecialOfferSearchCondition

Condition that must match for found items.

$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
SpecialOfferCollection|null

List of special offers by given conditions.

_mapSpecialOffer()

Maps the given data to a special offer entity.

protected _mapSpecialOffer(array<string|int, mixed> $data) : SpecialOffer
Parameters
$data : array<string|int, mixed>

Data to be mapped.

Tags
throws
Exception
Return values
SpecialOffer

Entity with mapped data.

Search results