public function setFlag(string $flag, $numbers): bool
    {
        return \imap_setflag_full($this->resource->getStream(), $this->prepareMessageIds($numbers), $flag, \ST_UID);
    }
public function setFlag(string $flag, $numbers): bool
    {
        return \imap_setflag_full($this->resource->getStream(), $this->prepareMessageIds($numbers), $flag, \ST_UID);
    }
public function setFlag ( string $ flag , $ numbers ) : bool { return \ imap_setflag_full ( $ this -> resource -> getStream ( ) , $ this -> prepareMessageIds ( $ numbers ) , $ flag , \ ST_UID ) ; }
Bulk Set Flag for Messages.

@param string                       $flag    \Seen, \Answered, \Flagged, \Deleted, and \Draft
@param array|MessageIterator|string $numbers Message numbers

@return bool
Bulk Set Flag for Messages .