SpecialOfferWriterInterface
in
Interface SpecialOfferWriterInterface
Table of Contents
- delete() : void
- Deletes a special offer from the storage by the given id.
- insert() : int
- Inserts the given special offer data to a storage.
- update() : void
- Updates the given special offer data to a storage.
Methods
delete()
Deletes a special offer from the storage by the given id.
public
delete(int $specialOfferId) : void
Parameters
- $specialOfferId : int
-
Id of special offer to be removed.
Return values
void —insert()
Inserts the given special offer data to a storage.
public
insert(array<string|int, mixed> $specialOfferData) : int
Parameters
- $specialOfferData : array<string|int, mixed>
-
Special offer data to be inserted.
Return values
int —Insert id.
update()
Updates the given special offer data to a storage.
public
update(array<string|int, mixed> $specialOfferData, int $specialOfferId) : void
Parameters
- $specialOfferData : array<string|int, mixed>
-
Special offer data to be updated.
- $specialOfferId : int
-
Id of special offer to be updated.