SpecialOfferWriteService

Implements \SpecialOfferWriteServiceInterface

Class SpecialOfferWriteService

package

Default

Methods

SpecialOfferWriteService constructor.

__construct(\SpecialOfferRepositoryInterface $repository) 

Arguments

Deletes the given special offer from the storage.

delete(\SpecialOfferInterface $specialOffer) : void

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be removed.

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.

update(\SpecialOfferInterface $specialOffer) : \SpecialOfferInterface

Arguments

$specialOffer

\SpecialOfferInterface

Special offer to be updated.

Response

\SpecialOfferInterface

Properties

repository

repository : \SpecialOfferRepositoryInterface