FlaggableInterface
interface FlaggableInterface (View source)
Methods
Mark the message as read. Alias for markSeen.
Mark the message as unread. Alias for unmarkSeen.
Mark the message as seen.
Unmark the seen flag.
Mark the message as answered.
Unmark the answered flag.
Mark the message as flagged.
Unmark the flagged flag.
Mark the message as deleted.
Unmark the deleted flag.
Mark the message as a draft.
Unmark the draft flag.
Mark the message as recent.
Unmark the recent flag.
Determine if the message is marked as seen.
Determine if the message is marked as answered.
Determine if the message is flagged.
Determine if the message is marked as deleted.
Determine if the message is marked as a draft.
Determine if the message is marked as recent.
Get the message's flags.
Determine if the message has the given flag.
Add or remove a flag from the message.
Details
void
markRead()
Mark the message as read. Alias for markSeen.
void
markUnread()
Mark the message as unread. Alias for unmarkSeen.
void
markSeen()
Mark the message as seen.
void
unmarkSeen()
Unmark the seen flag.
void
markAnswered()
Mark the message as answered.
void
unmarkAnswered()
Unmark the answered flag.
void
markFlagged()
Mark the message as flagged.
void
unmarkFlagged()
Unmark the flagged flag.
void
markDeleted(bool $expunge = false)
Mark the message as deleted.
void
unmarkDeleted()
Unmark the deleted flag.
void
markDraft()
Mark the message as a draft.
void
unmarkDraft()
Unmark the draft flag.
void
markRecent()
Mark the message as recent.
void
unmarkRecent()
Unmark the recent flag.
bool
isSeen()
Determine if the message is marked as seen.
bool
isAnswered()
Determine if the message is marked as answered.
bool
isFlagged()
Determine if the message is flagged.
bool
isDeleted()
Determine if the message is marked as deleted.
bool
isDraft()
Determine if the message is marked as a draft.
bool
isRecent()
Determine if the message is marked as recent.
array
flags()
Get the message's flags.
bool
hasFlag(BackedEnum|string $flag)
Determine if the message has the given flag.
void
flag(BackedEnum|string $flag, string $operation, bool $expunge = false)
Add or remove a flag from the message.