SpecialOfferWriteService
in package
implements
SpecialOfferWriteServiceInterface
Class SpecialOfferWriteService
Interfaces, Classes and Traits
- SpecialOfferWriteServiceInterface
- Interface SpecialOfferWriteServiceInterface
Table of Contents
- $repository : SpecialOfferRepositoryInterface
- __construct() : mixed
- SpecialOfferWriteService constructor.
- delete() : void
- Deletes the given special offer from the storage.
- save() : SpecialOfferInterface
- Saves the given special offer in the storage.
- update() : SpecialOfferInterface
- Updates the given special offer.
Properties
$repository
protected
SpecialOfferRepositoryInterface
$repository
Methods
__construct()
SpecialOfferWriteService constructor.
public
__construct(SpecialOfferRepositoryInterface $repository) : mixed
Parameters
- $repository : SpecialOfferRepositoryInterface
Return values
mixed —delete()
Deletes the given special offer from the storage.
public
delete(SpecialOfferInterface $specialOffer) : void
Parameters
- $specialOffer : SpecialOfferInterface
-
Special offer to be removed.
Return values
void —save()
Saves the given special offer in the storage.
public
save(SpecialOfferInterface $specialOffer) : SpecialOfferInterface
Parameters
- $specialOffer : SpecialOfferInterface
-
Special offer to be saved.
Return values
SpecialOfferInterface —update()
Updates the given special offer.
public
update(SpecialOfferInterface $specialOffer) : SpecialOfferInterface
Parameters
- $specialOffer : SpecialOfferInterface
-
Special offer to be updated.