SpecialOfferMapperInterface

Extends

Interface SpecialOfferMapperInterface

package

Default

Methods

Deletes the given special offer from the storage.

delete(\SpecialOfferInterface $specialOffer) : void

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be removed.

Returns all special offers.

findAll(\Pager $pager) : \SpecialOfferCollection|null

Arguments

$pager

\Pager

Pager instance that stores the current page and items per page.

Response

\SpecialOfferCollection|null

List of special offers.

Returns all special offers that matches the given search condition.

findBy(\Pager $pager, \SpecialOfferSearchCondition $searchCondition) : \SpecialOfferCollection|null

Arguments

$pager

\Pager

Pager instance that stores the current page and items per page.

$searchCondition

\SpecialOfferSearchCondition

Condition that must match for found items.

Response

\SpecialOfferCollection|null

List of special offers by given conditions.

Returns a special offer by the given id.

findById(\SpecialOfferIdInterface $specialOfferId) : \SpecialOfferInterface|null

Arguments

$specialOfferId

\SpecialOfferIdInterface

Id of expected special offer.

Response

\SpecialOfferInterface|null

Special offer entity by given id.

Saves the given special offer in the storage.

save(\SpecialOfferInterface $specialOffer) : \SpecialOfferInterface

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be saved.

Response

\SpecialOfferInterface

Updates the given special offer in the storage.

update(\SpecialOfferInterface $specialOffer) : \SpecialOfferInterface

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be updated.

Response

\SpecialOfferInterface