EmailDeleterInterface
in
Interface EmailDeleterInterface
Tags
Table of Contents
- delete() : mixed
- Removes a record from the database.
- deleteEmailsByEmailAddress() : mixed
- Removes all emails from the data base that have the given email address as sender or recipient.
- deleteOldEmailsByDate() : mixed
- Removes all emails from the database that have creation date below the give date.
Methods
delete()
Removes a record from the database.
public
delete(EmailInterface $email) : mixed
This method will delete all the email relevant entities from the database. It will not throw an exception if the given record is not found.
Parameters
- $email : EmailInterface
-
E-Mail.
Return values
mixed —deleteEmailsByEmailAddress()
Removes all emails from the data base that have the given email address as sender or recipient.
public
deleteEmailsByEmailAddress(CustomerEmail $email) : mixed
Parameters
- $email : CustomerEmail
-
E-Mail address.
Return values
mixed —deleteOldEmailsByDate()
Removes all emails from the database that have creation date below the give date.
public
deleteOldEmailsByDate(DateTime $date) : mixed
Parameters
- $date : DateTime